Sha256: 0823bf4b53df1747e470ec3dadb19118f1b2397840f462e84c284763e1f75c24

Contents?: true

Size: 1.11 KB

Versions: 30

Compression:

Stored size: 1.11 KB

Contents

<div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.question')) -%></h1>
<div id="content_list">

<%= simple_form_for(@question, :validate => true) do |f| -%>
  <%= f.error_notification -%>

  <div class="field">
    <%= f.label t('activerecord.models.user') -%><br />
    <%= link_to @question.user.username, @question.user -%>
  </div>

  <div class="field">
    <%= f.label :body -%><br />
    <%= f.text_area :body, :class => 'resource_textarea' -%>
  </div>

  <div class="field">
    <%= f.label :shared -%>
    <%= f.check_box :shared -%>
  </div>

  <div class="field">
    <%= f.label :solved -%>
    <%- if @question.user == current_user -%>
      <%= f.check_box :solved -%>
    <%- else -%>
      <%= f.check_box :solved, :disabled => 'disabled' -%>
    <%- end -%>
  </div>

  <div class="actions">
    <%= f.submit %>
  </div>
<%- end -%>
</div>
</div>

<div id="submenu" class="ui-corner-all">
  <ul>
    <li><%= link_to t('page.show'), @question -%></li>
    <li><%= link_to t('page.back'), user_questions_path(@question.user) -%></li>
  </ul>
</div>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
enju_question-0.0.12 app/views/questions/edit.html.erb
enju_question-0.0.11 app/views/questions/edit.html.erb
enju_question-0.0.10 app/views/questions/edit.html.erb
enju_question-0.0.9 app/views/questions/edit.html.erb
enju_question-0.0.8 app/views/questions/edit.html.erb
enju_question-0.0.7 app/views/questions/edit.html.erb
enju_question-0.0.6 app/views/questions/edit.html.erb
enju_question-0.0.5 app/views/questions/edit.html.erb
enju_question-0.0.4 app/views/questions/edit.html.erb
enju_question-0.0.3 app/views/questions/edit.html.erb