Disabled adding new position from subject (on hold)
This commit is contained in:
parent
5e10fdd95b
commit
b89e365369
3 changed files with 4 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ class ApplicationController < ActionController::Base
|
|||
include ApplicationHelper
|
||||
include SessionsHelper
|
||||
include ActionView::Helpers::TextHelper
|
||||
require 'htmlentities'
|
||||
|
||||
before_action :set_locale
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@
|
|||
<%= e.date_select :fact_date, start_year: Date.today.year-10, end_year: Date.today.year %>
|
||||
<%= e.time_select :fact_date, ignore_date: true %>
|
||||
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<%= f.submit "Ajouter", class: "btn btn-primary" %>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
<%= render @subject.positions.select { |p| p.id } %>
|
||||
|
||||
<% if logged_in? && allowed_to(:add_position) && allowed_to(:add_statement) %>
|
||||
<% if false && logged_in? && allowed_to(:add_position) && allowed_to(:add_statement) %>
|
||||
<li id="new-position">
|
||||
<%= form_for(@new_position) do |f| %>
|
||||
<%= render 'shared/error_messages', object: f.object %>
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
<span class="PositionDescription"><%= f.text_area :description, placeholder: "Description" %></span>
|
||||
|
||||
<!-- Il est obligatoire d'ajouter une première prise de position pour valider une nouvelle position, donc on la met tout de suite dans le même formulaire -->
|
||||
<h3>Qui a pris cette position ?</h3>
|
||||
<p>Qui a pris cette position ?</p>
|
||||
|
||||
|
||||
<%= f.submit "Ajouter", class: "btn btn-primary" %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue