-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9bbb11
commit b9d9e3f
Showing
13 changed files
with
49 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ | |
/log/*.log | ||
/tmp | ||
/coverage | ||
.rvmrc | ||
.rvmrc | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,28 @@ | ||
<%= form_for @project, :validate => true, :html => {:class => "form-horizontal"} do |f| %> | ||
<div class="control-group"> | ||
<%= form_for @project, :validate => true do |f| %> | ||
|
||
<%= f.label :title, "Título", :class => 'control-label' %> | ||
<div class="controls"> | ||
<%= f.text_field :title, :class => 'text_field span4' %> | ||
</div> | ||
</div> | ||
<%= f.text_field :title, :class => 'text_field span6' %> | ||
|
||
<div class="control-group"> | ||
|
||
<%= f.label :description, "Resumo", :class => 'control-label' %> | ||
<div class="controls"> | ||
<%= f.text_area :description, :class => 'text_area span4', :rows => 5 %> | ||
</div> | ||
</div> | ||
<%= f.text_area :description, :class => 'text_area span6', :rows => 10 %> | ||
|
||
<div class="control-group"> | ||
<%= f.label :tag_list, "Palavras-chave", :class => 'control-label' %> | ||
<div class="controls"> | ||
<%= f.text_field :tag_list, :class => "span4" %> | ||
<p class="help-block">Palavras separadas por vírgulas. (Games, educação, direito)</p> | ||
</div> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<%= f.label :tag_list, "Palavras-chave", :class => 'control-label' %> | ||
<%= f.text_field :tag_list, :class => "span6" %> | ||
<p class="help-block">Palavras separadas por vírgulas. (Games, educação, direito)</p> | ||
|
||
<%= f.label :college_id, "Instituição", :class => 'control-label' %> | ||
<div class="controls"> | ||
<%= f.select :college_id, College.all.collect {|c| [c.name, c.id]}, {}, {:class => "span4"} %> | ||
</div> | ||
</div> | ||
<%= f.select :college_id, College.all.collect {|c| [c.name, c.id]}, {}, {:class => "span6"} %> | ||
|
||
<div class="control-group"> | ||
<%= f.label :delivery_year, "Ano de Entrega", :class => 'control-label' %> | ||
<div class="controls"> | ||
<%= f.date_select :delivery_year, {:discard_day => true, :discard_month => true}, {:class => 'span1'} %> | ||
</div> | ||
</div> | ||
<%= f.date_select :delivery_year, {:discard_day => true, :discard_month => true}, {:class => 'span1'} %> | ||
|
||
<%= f.text_field :user_id, :class => "hide" %> | ||
<%= f.text_field :user_id, :class => "hide" %> | ||
|
||
<div class="form-actions"> | ||
<%= f.submit "Criar Projeto", :class => 'btn btn-primary' %> | ||
<%= link_to "Cancelar", root_path, "data-dismiss" => "modal" %> | ||
</div> | ||
<div class="form-actions"> | ||
<%= f.submit :class => 'btn btn-primary' %> | ||
<%= link_to "Deletar Projeto", project_path(@project), :method => :delete, :class => "btn btn-danger pull-right", :confirm => "Tem certeza ?" if controller.action_name == "edit" %> | ||
</div> | ||
|
||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
<%- model_class = @project.class -%> | ||
<h1><%=t '.title', :default => t('helpers.titles.edit', :model => model_class.model_name.human, | ||
:default => "Edit #{model_class.model_name.human}") %></h1> | ||
<%= render :partial => 'form' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
pt-BR: | ||
activerecord: | ||
models: | ||
project: Projeto | ||
attributes: | ||
project: | ||
title: "Título" | ||
description: "Resumo" |