<% # encoding: utf-8 # # Redmine plugin for Document Management System "Features" # # Copyright (C) 2011-17 Karel Pičman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. %>

<%= l(:title_create_link) %>

<%= labelled_form_for @dmsf_link, :remote => modal do |f| %> <%= error_messages_for @dmsf_link %> <%= f.hidden_field :project_id, :value => @dmsf_link.project_id %> <%= f.hidden_field :dmsf_folder_id, :value => @dmsf_link.dmsf_folder_id if @dmsf_link.dmsf_folder_id %> <%= f.hidden_field :type, :value => @type %> <%= f.hidden_field :dmsf_file_id, :value => @dmsf_file_id %> <%= f.hidden_field(:container, :value => @container) if @container %>
<% if (@type == 'link_from') && !@container %>

<%= radio_button_tag(:external_link, 'false', true) %> <%= l(:label_internal) %>
<%= radio_button_tag(:external_link, 'true', false) %> <%= l(:label_external) %>

<% end %> <% if (@type == 'link_from') && !@container %> <% end %>

<%= f.text_field :name, :required => true %>

<% if modal %> <%= f.submit l(:button_create), :onclick => 'hideModal(this);' %> <% else %> <%= f.submit l(:button_create) %> <% end %>

<% end %>