From e7ec57068719b69b493ae3afba181506a3a75562 Mon Sep 17 00:00:00 2001
From: Matheus Agio Nerone <man13@inf.ufpr.br>
Date: Thu, 19 Nov 2015 17:22:37 -0200
Subject: [PATCH] a better form layout

Signed-off-by: Matheus Agio Nerone <man13@inf.ufpr.br>
---
 app/views/learning_objects/_form.html.erb | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/app/views/learning_objects/_form.html.erb b/app/views/learning_objects/_form.html.erb
index 45ae1d90..d7095a91 100644
--- a/app/views/learning_objects/_form.html.erb
+++ b/app/views/learning_objects/_form.html.erb
@@ -13,19 +13,21 @@
 
 <div class="row">
   <div class="col-md-12">
-    Upload de arquivos
+
   </div>
 
   <div class="row">
     <div class="col-md-12">
+      <fieldset>
+        <legend><h1>Upload de arquivos</h1></legend>
       <%= f.label :author, "Autor" %>
-      <%= f.text_field :author %><br>
+      <%= f.text_field :author, class: "form-control"%><br>
       <%= f.label :name, "Título" %>
-      <%= f.text_field :name %> <br>
+      <%= f.text_field :name, class: "form-control"%> <br>
       <%= f.label :description, "Descrição" %>
-      <%= f.text_field :description %><br>
+      <%= f.text_field :description, class: "form-control" %><br>
       <%= f.label :language, "Linguagem" %>
-      <%= f.text_field :language %><br>
+      <%= f.text_field :language, class: "form-control" %><br>
       <!-- <%= f.label :source, "Fonte" %>
       <%= f.text_field :source %><br>
       <%= f.label :type, "Tipo de objeto" %>
@@ -36,6 +38,7 @@
       <%= f.text_field :copyright %><br>
       <%= f.label :country, "Pais" %>
       <%= f.text_field :country %> <br> -->
+      <%= f.label :subjects, "Assuntos" %>
       <select id='subjectSelect' name="learning_object[subjects][]" multiple>
         <%= @subjects.each do |subject| %>
           <option value='<%= subject %>'><%= subject %></option>
@@ -43,15 +46,20 @@
       </select>
       <!-- <%= f.label :keywords, "Palavras-chave" %>
       <%= f.text_field :keywords %> <br> -->
+      <br><br>
+      <%= f.label :school_level, "Nível Escolar" %><br>
       <select name="learning_object[school_level]">
          <%= @school_levels.each do |school_level|%>
          <option value="<%= school_level %>"><%= school_level %></option>
          <% end %>
       </select>
+      <br>
+      <br>
       <%= f.file_field :file %>
       <br>
       <br>
       <%= f.submit %>
+      </fieldset>
     </div>
   </div>
 </div>
-- 
GitLab