This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#55 move program entries in a program
- Loading branch information
Vera Peeters
committed
Aug 12, 2013
1 parent
1a96e30
commit 1450736
Showing
9 changed files
with
129 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<%= form_for(@program_entry, :url => url_for(:action => 'update_location'), remote: true) do |f| %> | ||
<div class="popup"> | ||
<%= errors_for @program_entry %> | ||
|
||
<%= f.hidden_field :program_id %> | ||
<h3>Program version <%= @program_entry.program.version %> </h3> | ||
|
||
<div class="in_a_form"> Slot <%= f.text_field :slot, size: 2 %> | ||
Track <%= f.text_field :track, size:2 %> </div> | ||
|
||
<div class="actions"> | ||
<%= f.submit %> | ||
<a onclick="$(this).closest('form').remove()">cancel</a> | ||
</div> | ||
|
||
</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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$('<%="#program_entry_#{@program_entry.id}"%>').after('<%= j render("form_move") %>'); | ||
|
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,7 @@ | ||
<% if @program_entry.errors.any? -%> | ||
$('<%="#edit_program_entry_#{@program_entry.id}"%>').html('<%= j render("form_popup") %>'); | ||
<% else %> | ||
$('<%="#edit_program_entry_#{@program_entry.id}"%>').remove(); | ||
$('#ProgramMatrix').after("<%= j render 'programs/program_matrix', :program=> @program, :editable=> true %>"); | ||
$('#ProgramMatrix').remove(); | ||
<% 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
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