Skip to content

Commit

Permalink
fix rename plate form url, add hidden form fields with plate id and c…
Browse files Browse the repository at this point in the history
…urrent name
  • Loading branch information
sajp committed Sep 6, 2012
1 parent 2b23bb0 commit 85b8df1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions root/site/user/plateedit/index.tt
Expand Up @@ -58,6 +58,7 @@
</a>
</div>
</div>
</br>
[% END %]

<div class="modal hide fade" id="DeletePlateModal">
Expand All @@ -74,7 +75,7 @@
</div>

<div class="modal-footer">
<button class="btn" data-dismiss="modal">Close</button>
<button class="btn" data-dismiss="modal">Cancel</button>
<button type="submit" value="delete_plate" class="btn btn-danger" id="delete_plate_button" >
<i class="icon-remove icon-white"></i> Confirm Delete Plate
</button>
Expand All @@ -83,18 +84,20 @@
</div>

<div class="modal hide fade" id="RenamePlateModal">
<form method="POST" id="plate_rename" action="[% c.uri_for( '/user/plate_rename' ) %]" class="modal-form" enctype="multipart/form-data" >
<form method="POST" id="plate_rename" action="[% c.uri_for( '/user/rename_plate' ) %]" class="modal-form" enctype="multipart/form-data" >
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 id="myModalLabel">Rename Plate</h3>
</div>

<div class="modal-body">
Rename plate from <strong>[% plate.name %]</strong> to <input name="plate_name" id="plate_name" type="text" />
<input type="hidden" name="plate_id" value="[% plate.id %]" />
<input type="hidden" name="plate_name" value="[% plate.name %]" />
Rename plate from <strong>[% plate.name %]</strong> to <input name="new_plate_name" id="new_plate_name" type="text" />
</div>

<div class="modal-footer">
<button class="btn" data-dismiss="modal">Close</button>
<button class="btn" data-dismiss="modal">Cancel</button>
<button name="plate_rename" id="plate_rename" type="submit" value="plate_rename" class="btn btn-primary">
<i class="icon-pencil"></i> Rename Plate
</button>
Expand Down

0 comments on commit 85b8df1

Please sign in to comment.