Sha256: ff91d54618f7c3bb8b11e99f408101a4a883c94017731e8b2f0f3db7b9ec7733

Contents?: true

Size: 1.17 KB

Versions: 15

Compression:

Stored size: 1.17 KB

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<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.profile if @question.user.try(:profile) -%>
  </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 ui-widget-content">
  <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

15 entries across 15 versions & 1 rubygems

Version Path
enju_question-0.3.2 app/views/questions/edit.html.erb
enju_question-0.3.1 app/views/questions/edit.html.erb
enju_question-0.3.0 app/views/questions/edit.html.erb
enju_question-0.3.0.beta.1 app/views/questions/edit.html.erb
enju_question-0.2.0 app/views/questions/edit.html.erb
enju_question-0.2.0.beta.4 app/views/questions/edit.html.erb
enju_question-0.2.0.beta.3 app/views/questions/edit.html.erb
enju_question-0.2.0.beta.2 app/views/questions/edit.html.erb
enju_question-0.2.0.beta.1 app/views/questions/edit.html.erb
enju_question-0.1.1 app/views/questions/edit.html.erb
enju_question-0.1.0 app/views/questions/edit.html.erb
enju_question-0.1.0.pre15 app/views/questions/edit.html.erb
enju_question-0.1.0.pre14 app/views/questions/edit.html.erb
enju_question-0.1.0.pre13 app/views/questions/edit.html.erb
enju_question-0.1.0.pre12 app/views/questions/edit.html.erb