Sha256: 206657a99a7b2e02e6249421b3157e7947e9ad7abfc549f398988decd42b85d1
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
- action ||= :create - if @dirmon_entry.errors.present? .alert.alert-alert Invalid Dirmon entry! - @dirmon_entry.errors.messages.each_pair do |field, message| .message = "#{field}: #{message}" = form_for @dirmon_entry, url: {action: action} do |f| .row .col-md-6 .name.form-group = f.label :name = f.text_field :name, class: 'form-control' .col-md-6 .job.form-group = f.label :job_class_name = f.text_field :job_class_name, class: 'form-control', disabled: action != :create .path.form-group = f.label :pattern = f.text_field :pattern, class: 'form-control' .path.form-group = f.label :archive_directory = f.text_field :archive_directory, class: 'form-control' .row .col-md-12 = render partial: 'properties', locals: { f: f } .buttons.pull-right = f.submit action, class: 'btn btn-primary' = link_to 'cancel', :back, class: 'btn btn-default' - if action == :create = button_tag 'properties', type: 'button', class: 'btn btn-default', id: 'properties', data: { url: rocket_job_mission_control.new_dirmon_entry_path }
Version data entries
6 entries across 6 versions & 1 rubygems