Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

Commit

Permalink
urls fixed in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Prasanna Gautam committed Apr 2, 2010
1 parent 3d980d1 commit 166a5f4
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 10 deletions.
Binary file modified lift_proto.db.h2.db
Binary file not shown.
4 changes: 2 additions & 2 deletions lift_proto.db.lock.db
@@ -1,4 +1,4 @@
#FileLock
#Thu Apr 01 21:15:34 EST 2010
id=127bc4d41a597831b676da3cb4a487404399335545b
#Fri Apr 02 01:22:49 EDT 2010
id=127bcf8b3140fa16642d93df46d96eb63b4bb84d764
method=file
2 changes: 1 addition & 1 deletion src/main/scala/com/angryfissure/model/User.scala
Expand Up @@ -80,7 +80,7 @@ class User extends MegaProtoUser[User] {
object role extends MappedEnum(this, Role){
override def defaultValue = Role.User
}

}

object Role extends Enumeration {
Expand Down
12 changes: 6 additions & 6 deletions src/main/scala/com/angryfissure/snippet/AdminSnip.scala
Expand Up @@ -39,11 +39,11 @@ class AdminSnip {
"deserved" -> fml.deserved,
"approved" -> approvedCheckBox(fml),
FuncAttrBindParam("view_href", _ =>
Text("view/"+ (fml.id)),"href"),
Text("/fmls/view/"+ (fml.id)),"href"),
FuncAttrBindParam("edit_href", _ =>
Text("edit/"+ (fml.id)),"href"),
Text("/fmls/edit/"+ (fml.id)),"href"),
FuncAttrBindParam("delete_href", _ =>
Text("delete/"+ (fml.id)),"href"))
Text("/fmls/delete/"+ (fml.id)),"href"))

private def doListFmls(reDraw: () => JsCmd)(html: NodeSeq): NodeSeq =
getFmls.
Expand Down Expand Up @@ -82,11 +82,11 @@ private def bindUser(user:User, html: NodeSeq, reDraw: () => JsCmd) ={
//user.role(Role.valueOf(selected.toString) getOrElse).save;
Run("alert('test')")}),
FuncAttrBindParam("view_href", _ =>
Text("view/"+ (user.id)),"href"),
Text("/user_mgmt/view/"+ (user.id)),"href"),
FuncAttrBindParam("edit_href", _ =>
Text("edit/"+ (user.id)),"href"),
Text("/user_mgmt/edit/"+ (user.id)),"href"),
FuncAttrBindParam("delete_href", _ =>
Text("delete/"+ (user.id)),"href"))
Text("/user_mgmt/delete/"+ (user.id)),"href"))
}

private def doListAllUsers(reDraw: ()=> JsCmd)(html:NodeSeq): NodeSeq =
Expand Down
3 changes: 3 additions & 0 deletions src/main/webapp/css/fml.css
Expand Up @@ -95,3 +95,6 @@ li.current a, a:visited, a:link {
color: #EDFF91;
}

#admin-content {
background-color:#FFF;
}
2 changes: 1 addition & 1 deletion src/main/webapp/templates-hidden/admin_template.html
Expand Up @@ -27,7 +27,7 @@ <h1><a href="/admin" class="alt" id="logo">trincollFML:Admin</a></h1>
<lift:snippet type="msgs"/>
</div>

<div>
<div id="admin-content">
<lift:bind name="content" />
</div>

Expand Down
Binary file modified target/classes/bootstrap/liftweb/Boot$$anonfun$boot$1.class
Binary file not shown.
Binary file modified target/classes/bootstrap/liftweb/Boot.class
Binary file not shown.
Binary file modified target/classes/com/angryfissure/model/User$.class
Binary file not shown.
Binary file modified target/classes/com/angryfissure/model/User.class
Binary file not shown.

0 comments on commit 166a5f4

Please sign in to comment.