diff options
Diffstat (limited to 'app/views/nodes/new.html.erb')
| -rw-r--r-- | app/views/nodes/new.html.erb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/nodes/new.html.erb b/app/views/nodes/new.html.erb index b56bbeed..883909a6 100644 --- a/app/views/nodes/new.html.erb +++ b/app/views/nodes/new.html.erb | |||
| @@ -12,13 +12,17 @@ | |||
| 12 | <div class="layout_row_label"><%= t(".type") %></div> | 12 | <div class="layout_row_label"><%= t(".type") %></div> |
| 13 | <div class="layout_row_content"> | 13 | <div class="layout_row_content"> |
| 14 | <% CccConventions::NODE_KINDS.each do |kind, config| %> | 14 | <% CccConventions::NODE_KINDS.each do |kind, config| %> |
| 15 | <% prefix = resolve_kind_text(config[:path_prefix]) %> | ||
| 15 | <p> | 16 | <p> |
| 16 | <%= radio_button_tag :kind, kind, kind == @selected_kind, | 17 | <%= radio_button_tag :kind, kind, kind == @selected_kind, |
| 17 | data: { path_prefix: resolve_kind_text(config[:path_prefix]) } %> | 18 | data: { path_prefix: prefix } %> |
| 18 | <%= resolve_kind_text(config[:label]) %> | 19 | <%= resolve_kind_text(config[:label]) %> |
| 19 | <% if config[:hint] %> | 20 | <% if config[:hint] %> |
| 20 | <span class="field_hint"><%= resolve_kind_text(config[:hint]) %></span> | 21 | <span class="field_hint"><%= resolve_kind_text(config[:hint]) %></span> |
| 21 | <% end %> | 22 | <% end %> |
| 23 | <% unless current_user.may_change_live_at?(prefix) %> | ||
| 24 | <span class="field_hint restricted_kind_hint"><%= t(".restricted_kind") %></span> | ||
| 25 | <% end %> | ||
| 22 | </p> | 26 | </p> |
| 23 | <% end %> | 27 | <% end %> |
| 24 | </div> | 28 | </div> |
