Skip to content

Commit

Permalink
the disabled attribute is cooler than disabled="disabled"
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Wenzel committed Mar 16, 2010
1 parent 9207e39 commit f4e245b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/addons/templates/addons/details.html
Expand Up @@ -207,8 +207,7 @@ <h3>{{ _('What do you think?') }}</h3>
<form class="addon-feedback" method="post"
action="{{ remora_url('/reviews/add/{0}')|f(addon.id) }}">
{{ cake_csrf_token() }}
{% with disabled = ('' if user.is_authenticated() else
' disabled="disabled"') %}
{% with disabled = ('' if user.is_authenticated() else ' disabled') %}
<div class="container">
<label for="review">{{ _('Review') }}</label>
<textarea name="data[Review][body]" id="review"{{ disabled }}
Expand Down

0 comments on commit f4e245b

Please sign in to comment.