[Rt-commit] r5927 - in commitbit: . share/web/templates/project

jesse at bestpractical.com jesse at bestpractical.com
Wed Sep 13 18:30:37 EDT 2006


Author: jesse
Date: Wed Sep 13 18:30:37 2006
New Revision: 5927

Modified:
   commitbit/   (props changed)
   commitbit/share/web/templates/project/index.html
   commitbit/share/web/templates/repository/projects

Log:
 r27370 at pinglin:  jesse | 2006-09-11 17:44:16 +0100
  checkpoint


Modified: commitbit/share/web/templates/project/index.html
==============================================================================
--- commitbit/share/web/templates/project/index.html	(original)
+++ commitbit/share/web/templates/project/index.html	Wed Sep 13 18:30:37 2006
@@ -1,8 +1,18 @@
 <%args>
 $project
 </%args>
+<%init>
+my $edit = Jifty->web->new_action(class =>'UpdateProject', record => $project);
+</%init>
 <&|/_elements/wrapper,title => $project->name &>
 <h1><%$project->name%></h1>
+% Jifty->web->form->start;
+% foreach my $arg ($edit->argument_names) {
+<%$edit->form_field($arg)%>
+%}
+<% Jifty->web->form->submit(label => 'Save changes')%>
+% Jifty->web->form->end;
+
 
 <%Jifty->web->link( label => 'People', url => '/project/'.$project->name.'/people')%>
 </&>

Modified: commitbit/share/web/templates/repository/projects
==============================================================================
--- commitbit/share/web/templates/repository/projects	(original)
+++ commitbit/share/web/templates/repository/projects	Wed Sep 13 18:30:37 2006
@@ -5,7 +5,7 @@
 <ul>
 % while (my $project = $projects->next) {
 % my $del = Jifty->web->new_action(class => 'DeleteProject', record => $project, moniker => 'delete-project-'.$project->id);
-<li><%$project->name%> 
+<li><%Jifty->web->link( label=> $project->name, url => '/project/'.$project->name)%> 
 <%$del->form_field('id')%>
     <% $del->button( label    => 'Delete project',
                                class    => 'delete',


More information about the Rt-commit mailing list