aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Xie <xieconnect@gmail.com>2010-06-06 10:14:09 +0800
committerHans de Graaff <hans@degraaff.org>2010-07-25 09:08:51 +0200
commit854029152445e65fa67a59d49721801a8ee654df (patch)
tree4f489226a6e7e45ed8246f55b6b031a7246b2854 /app/views/taglibs/auto/rapid
parentimport User data from db:seed (diff)
downloadcouncil-webapp-854029152445e65fa67a59d49721801a8ee654df.tar.gz
council-webapp-854029152445e65fa67a59d49721801a8ee654df.tar.bz2
council-webapp-854029152445e65fa67a59d49721801a8ee654df.zip
Agenda implemented and tested
Diffstat (limited to 'app/views/taglibs/auto/rapid')
-rw-r--r--app/views/taglibs/auto/rapid/cards.dryml11
-rw-r--r--app/views/taglibs/auto/rapid/forms.dryml12
-rw-r--r--app/views/taglibs/auto/rapid/pages.dryml123
3 files changed, 146 insertions, 0 deletions
diff --git a/app/views/taglibs/auto/rapid/cards.dryml b/app/views/taglibs/auto/rapid/cards.dryml
index 38c8c7f..4186cdc 100644
--- a/app/views/taglibs/auto/rapid/cards.dryml
+++ b/app/views/taglibs/auto/rapid/cards.dryml
@@ -1,5 +1,16 @@
<!-- AUTOMATICALLY GENERATED FILE - DO NOT EDIT -->
+<def tag="card" for="Agenda">
+ <card class="agenda" param="default" merge>
+ <header: param>
+ <h4 param="heading"><a><name/></a></h4>
+ </header:>
+ <body: param>
+ <a:owner param="creator-link"/>
+ </body:>
+ </card>
+</def>
+
<def tag="card" for="Question">
<card class="question" param="default" merge>
<header: param>
diff --git a/app/views/taglibs/auto/rapid/forms.dryml b/app/views/taglibs/auto/rapid/forms.dryml
index a359af6..c57f7b6 100644
--- a/app/views/taglibs/auto/rapid/forms.dryml
+++ b/app/views/taglibs/auto/rapid/forms.dryml
@@ -1,5 +1,17 @@
<!-- AUTOMATICALLY GENERATED FILE - DO NOT EDIT -->
+<def tag="form" for="Agenda">
+ <form merge param="default">
+ <error-messages param/>
+ <field-list fields="name, description" param/>
+ <div param="actions">
+ <submit label="#{ht 'agendas.actions.save', :default=>['Save']}" param/><or-cancel param="cancel"/>
+ </div>
+ </form>
+</def>
+
+
+
<def tag="form" for="Question">
<form merge param="default">
<error-messages param/>
diff --git a/app/views/taglibs/auto/rapid/pages.dryml b/app/views/taglibs/auto/rapid/pages.dryml
index ad1eee4..5b4a00a 100644
--- a/app/views/taglibs/auto/rapid/pages.dryml
+++ b/app/views/taglibs/auto/rapid/pages.dryml
@@ -5,6 +5,7 @@
<def tag="main-nav">
<navigation class="main-nav" merge-attrs param="default">
<nav-item href="#{base_url}/">Home</nav-item>
+ <nav-item with="&Agenda"><ht key="agendas.nav_item">Agendas</ht></nav-item>
<nav-item with="&Question"><ht key="questions.nav_item">Questions</ht></nav-item>
</navigation>
</def>
@@ -12,6 +13,128 @@
+<!-- ====== Agenda Pages ====== -->
+
+<def tag="index-page" for="Agenda">
+ <page merge title="#{ht 'agendas.index.title', :default=>['Agendas'] }">
+ <body: class="index-page agenda" param/>
+
+ <content: param>
+ <header param="content-header">
+ <h2 param="heading">
+ <ht key="agendas.index.heading">
+ Agendas
+ </ht>
+ </h2>
+
+ <p param="count" if>
+ <ht key="agendas.collection.count" count="&this.size">
+ There <count prefix="are"/>
+ </ht>
+ </p>
+ </header>
+
+ <section param="content-body">
+ <a action="new" to="&model" param="new-link">
+ <ht key="agendas.actions.new">New Agenda</ht>
+ </a>
+
+ <page-nav param="top-page-nav"/>
+
+ <collection param/>
+
+ <page-nav param="bottom-page-nav"/>
+
+
+ </section>
+ </content:>
+ </page>
+</def>
+
+
+<def tag="new-page" for="Agenda">
+ <page merge title="#{ht 'agendas.new.title', :default=>[' New Agenda'] }">
+ <body: class="new-page agenda" param/>
+
+ <content: param>
+ <section param="content-header">
+ <h2 param="heading">
+ <ht key="agendas.new.heading">
+ New Agenda
+ </ht>
+ </h2>
+ </section>
+
+ <section param="content-body">
+ <form param>
+ <submit: label="#{ht 'agendas.actions.create', :default=>['Create Agenda']}"/>
+ </form>
+ </section>
+ </content:>
+ </page>
+</def>
+
+
+<def tag="show-page" for="Agenda">
+ <page merge title="#{ht 'agendas.show.title', :default=>['Agenda'] }">
+
+ <body: class="show-page agenda" param/>
+
+ <content: param>
+ <header param="content-header">
+ <h2 param="heading">
+ <ht key="agendas.show.heading" name="&this.respond_to?(:name) ? this.name : ''">
+ <name/>
+ </ht>
+ </h2>
+
+ <record-flags fields="" param/>
+
+ <a:owner param="creator-link"/>
+
+ <a action="edit" if="&can_edit?" param="edit-link">
+ <ht key="agendas.actions.edit" name="&this.respond_to?(:name) ? this.name : ''">
+ Edit Agenda
+ </ht>
+ </a>
+ </header>
+
+ <section param="content-body">
+ <view:description param="description"/>
+ </section>
+ </content:>
+
+ </page>
+</def>
+
+
+<def tag="edit-page" for="Agenda">
+ <page merge title="#{ht 'agendas.edit.title', :default=>['Edit Agenda'] }">
+
+ <body: class="edit-page agenda" param/>
+
+ <content:>
+ <section param="content-header">
+ <h2 param="heading">
+ <ht key="agendas.edit.heading" name="&this.respond_to?(:name) ? this.name : ''">
+ Edit <type-name/>
+ </ht>
+ </h2>
+ <delete-button label="#{ht 'agendas.actions.delete', :default=>['Remove This Agenda']}" param/>
+ </section>
+
+ <section param="content-body">
+ <form param/>
+ </section>
+ </content:>
+
+ </page>
+</def>
+
+
+
+
+
<!-- ====== Question Pages ====== -->
<def tag="index-page" for="Question">