25 lines
581 B
Text
25 lines
581 B
Text
|
<h3>Add a new software</h3>
|
||
|
|
||
|
<%= render 'form_errors' %>
|
||
|
|
||
|
<%= form_with(
|
||
|
scope: :software,
|
||
|
url: softwares_path,
|
||
|
class: 'uk-form-horizontal uk-form-width-large',
|
||
|
model: @software,
|
||
|
local: true
|
||
|
) do |form|
|
||
|
%>
|
||
|
<p>
|
||
|
<%= form.label :name, class: 'uk-form-label' %><br>
|
||
|
<%= form.text_field :name, class: 'uk-input' %>
|
||
|
</p>
|
||
|
<p>
|
||
|
<%= form.label :website, class: 'uk-form-label' %><br>
|
||
|
<%= form.text_field :website, class: 'uk-input' %>
|
||
|
</p>
|
||
|
<p>
|
||
|
<%= form.submit class: 'uk-button uk-button-default uk-margin' %>
|
||
|
</p>
|
||
|
<% end %>
|