Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work in progress for integrating Twitter Bootstrap and jQuery into Branston, as well as removing Prototype and any refers to Rails JS helpers which will help if we decide to switch to Padrino
- Loading branch information
Stuart Chinery
committed
Dec 11, 2012
1 parent
bff694f
commit b158894
Showing
83 changed files
with
1,063 additions
and
9,336 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
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,34 +1,40 @@ | ||
<%= error_messages_for :object => @iteration, | ||
:header_tag => 'h3', | ||
:id => "errors", | ||
:class => "errors", | ||
:header_message => "Whoops!", | ||
:message => "We had some problems saving this iteration." | ||
:class => "alert alert-error", | ||
:header_message => "", | ||
:message => "We had some problems saving this iteration" | ||
-%> | ||
<div class="form"> | ||
<p class="form-fields"> | ||
<%= f.label :name %> | ||
<%= f.text_field :name %> | ||
</p> | ||
<p class="form-fields"> | ||
<%= f.label :velocity %> | ||
<%= f.text_field :velocity, :size => 4, :onkeypress => "return Branston.Form.numericOnly(event);" %> | ||
</p> | ||
<p class="form-fields"> | ||
<%= f.label :start_date %> | ||
<%= f.calendar_date_select :start_date, :time => false, :popup => 'force' %> | ||
</p> | ||
<p class="form-fields"> | ||
<%= f.label :end_date %> | ||
<%= f.calendar_date_select :end_date, :time => false, :popup => 'force' %> | ||
</p> | ||
<!-- | ||
TODO: Currently not showing releases as these need some reworking. | ||
<% unless @releases.nil? -%> | ||
<p class="form-fields"> | ||
<%= f.label :release %> | ||
<%= f.select :release_id, @releases.map {|release| [release.release_date.strftime('%d/%m/%Y'), release.id]} %> | ||
</p> | ||
--> | ||
<% end -%> | ||
|
||
<div class="control-group"> | ||
<%= form.label :name, nil, :class => "control-label" %> | ||
<div class="controls"> | ||
<%= form.text_field :name, :class => "input-xxlarge" %> | ||
</div> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<%= form.label :velocity, nil, :class => "control-label" %> | ||
<div class="controls"> | ||
<%= form.text_field :velocity, :class => "input-xxlarge", :onkeypress => "return branston.forms.numericOnly(event);", :size => 4 %> | ||
</div> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<%= form.label :start_date, nil, :class => "control-label" %> | ||
<div class="controls"> | ||
<%= form.text_field :start_date, :class => "input-xxlarge" %> Add calendar select | ||
</div> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<%= form.label :end_date, nil, :class => "control-label" %> | ||
<div class="controls"> | ||
<%= form.text_field :end_date, :class => "input-xxlarge" %> Add calendar select | ||
</div> | ||
</div> | ||
|
||
<div class="form-actions"> | ||
<button type="submit" class="btn btn-primary">Save</button> | ||
<button type="button" class="btn" onclick="window.location='<%= projects_path %>';">Cancel</button> | ||
</div> |
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,16 +1,27 @@ | ||
<% @page_title = "Edit #{@iteration.name}" %> | ||
<h2><%=h @page_title %></h2> | ||
|
||
<div id="actions"> | ||
<ul> | ||
<li><%= link_to 'Back', project_path(@project) %></li> | ||
<li><%= link_to 'Show', project_iteration_path(@project, @iteration) %></li> | ||
</ul> | ||
<div class="row"> | ||
<div class="span12"> | ||
<ul class="breadcrumb"> | ||
<li><a href="<%= projects_path %>">Projects</a> <span class="divider">/</span></li> | ||
<li><a href="<%= project_path(@project) %>"><%= @project.name %></a> <span class="divider">/</span></li> | ||
<li class="active"><%= @page_title %></li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<% form_for :iteration, :url => project_iteration_path(@project, @iteration), | ||
:html => { :method => 'PUT' } do |f| %> | ||
<%= render :partial => 'form', :locals => {:f => f } %> | ||
<p><%= f.submit 'Update' %></p> | ||
<% end %> | ||
<div class="row heading"> | ||
<div class="span12"> | ||
<h1 class="muted"><%=h @page_title %></h1> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="span12"> | ||
<% form_for :iteration, :url => project_iteration_path(@project, @iteration), | ||
:html => { :method => 'PUT', :class => "form-horizontal"} do |form| %> | ||
<%= render :partial => 'form', :locals => {:form => form} %> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
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,15 +1,26 @@ | ||
<% @page_title = "New Iteration" %> | ||
<h2><%=h @page_title %></h2> | ||
|
||
<div id="actions"> | ||
<ul> | ||
<li><%= link_to 'Back', project_path(@project) %></li> | ||
</ul> | ||
<div class="row"> | ||
<div class="span12"> | ||
<ul class="breadcrumb"> | ||
<li><a href="<%= projects_path %>">Projects</a> <span class="divider">/</span></li> | ||
<li><a href="<%= project_path(@project) %>"><%= @project.name %></a> <span class="divider">/</span></li> | ||
<li class="active"><%= @page_title %></li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<% form_for :iteration, :url => project_iterations_path(@project), | ||
:html => { :method => 'POST' } do |f| %> | ||
<%= render :partial => 'form', :locals => {:f => f } %> | ||
<p><%= f.submit 'Create' %></p> | ||
<% end %> | ||
<div class="row heading"> | ||
<div class="span12"> | ||
<h1 class="muted"><%=h @page_title %></h1> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="span12"> | ||
<% form_for :iteration, :url => project_iterations_path(@project), | ||
:html => { :method => 'POST', :class => "form-horizontal" } do |form| %> | ||
<%= render :partial => 'form', :locals => {:form => form} %> | ||
<% end %> | ||
</div> | ||
</div> |
Oops, something went wrong.