talia_core 0.4.22 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/config/database.yml +9 -9
- data/config/rdfstore.yml +4 -4
- data/config/talia_core.yml +5 -2
- data/generators/generator_helpers.rb +66 -25
- data/generators/talia_admin/talia_admin_generator.rb +9 -9
- data/generators/talia_admin/templates/app/controllers/admin/admin_site_controller.rb +5 -0
- data/generators/talia_admin/templates/app/controllers/admin/custom_templates_controller.rb +7 -0
- data/generators/talia_admin/templates/app/controllers/admin/front_controller.rb +19 -0
- data/generators/talia_admin/templates/app/controllers/admin/talia_collections_controller.rb +7 -0
- data/generators/talia_admin/templates/app/controllers/admin/talia_sources_controller.rb +17 -0
- data/generators/talia_admin/templates/app/controllers/admin/users_controller.rb +7 -0
- data/generators/talia_admin/templates/app/controllers/users_controller.rb +7 -0
- data/generators/talia_admin/templates/app/helpers/admin/front_helper.rb +2 -0
- data/generators/talia_admin/templates/app/helpers/admin/talia_sources_helper.rb +7 -0
- data/generators/talia_admin/templates/app/helpers/users_helper.rb +2 -0
- data/generators/talia_admin/templates/app/models/guest.rb +7 -0
- data/generators/talia_admin/templates/app/models/talia_collection.rb +56 -0
- data/generators/talia_admin/templates/app/models/talia_source.rb +43 -0
- data/generators/talia_admin/templates/app/models/user.rb +59 -0
- data/generators/talia_admin/templates/app/models/user_mailer.rb +14 -0
- data/generators/talia_admin/templates/app/viewhints/talia_source_hints.rb +3 -0
- data/generators/talia_admin/templates/app/views/admin/custom_templates/index.dryml +7 -0
- data/generators/talia_admin/templates/app/views/admin/front/index.dryml +29 -0
- data/generators/talia_admin/templates/app/views/admin/front/summary.dryml +103 -0
- data/generators/talia_admin/templates/app/views/admin/talia_collections/index.dryml +7 -0
- data/generators/talia_admin/templates/app/views/admin/talia_sources/index.dryml +17 -0
- data/generators/talia_admin/templates/app/views/admin/talia_sources/show.dryml +8 -0
- data/generators/talia_admin/templates/app/views/admin/users/index.dryml +7 -0
- data/generators/talia_admin/templates/app/views/taglibs/admin_site.dryml +91 -0
- data/generators/talia_admin/templates/app/views/taglibs/application.dryml +9 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/admin/rapid/cards.dryml +34 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/admin/rapid/forms.dryml +71 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/admin/rapid/pages.dryml +543 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/rapid/cards.dryml +37 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/rapid/forms.dryml +35 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/rapid/pages.dryml +175 -0
- data/generators/talia_admin/templates/app/views/taglibs/front_site.dryml +1 -0
- data/generators/talia_admin/templates/app/views/taglibs/themes/clean/clean.dryml +10 -0
- data/generators/talia_admin/templates/app/views/user_mailer/forgot_password.erb +10 -0
- data/generators/talia_admin/templates/config/hobo_initializer.rb +1 -0
- data/generators/talia_admin/templates/migrations/create_users.rb +22 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/101-3B5F87-ACD3E6.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/30-3E547A-242E42.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/30-DBE1E5-FCFEF5.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/300-ACD3E6-fff.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/50-ACD3E6-fff.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/fieldbg.gif +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/pencil.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/small_close.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/spinner.gif +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/stylesheets/clean.css +326 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/stylesheets/rapid-ui.css +100 -0
- data/generators/talia_admin/templates/public/javascripts/IE7.js +2 -0
- data/generators/talia_admin/templates/public/javascripts/blank.gif +0 -0
- data/generators/talia_admin/templates/public/javascripts/dryml-support.js +132 -0
- data/generators/talia_admin/templates/public/javascripts/hobo-rapid.js +937 -0
- data/generators/talia_admin/templates/public/javascripts/ie7-recalc.js +166 -0
- data/generators/talia_admin/templates/public/javascripts/lowpro.js +43 -25
- data/generators/talia_admin/templates/public/stylesheets/application.css +0 -0
- data/generators/talia_admin/templates/public/stylesheets/hobo-rapid.css +94 -0
- data/generators/talia_admin/templates/public/stylesheets/reset.css +95 -0
- data/generators/talia_admin/templates/test/fixtures/users.yml +7 -0
- data/generators/talia_admin/templates/test/functional/admin/{custom_templates_controller_test.rb → front_controller_test.rb} +1 -1
- data/generators/talia_admin/templates/test/functional/users_controller_test.rb +8 -0
- data/generators/talia_admin/templates/test/unit/user_test.rb +8 -0
- data/generators/talia_base/talia_base_generator.rb +24 -17
- data/generators/talia_oai/USAGE +0 -0
- data/generators/talia_oai/talia_oai_generator.rb +19 -0
- data/generators/talia_oai/templates/oai_controller.rb +9 -0
- data/generators/talia_oai/templates/oai_initializer.rb +16 -0
- data/lib/custom_template.rb +24 -0
- data/lib/talia_core/active_source_parts/class_methods.rb +1 -1
- data/lib/talia_core/active_source_parts/finders.rb +4 -0
- data/lib/talia_core/collection.rb +4 -0
- data/lib/talia_core/oai/active_source_model.rb +113 -0
- data/lib/talia_core/oai/active_source_oai_adapter/class_methods.rb +17 -0
- data/lib/talia_core/oai/active_source_oai_adapter.rb +106 -0
- data/lib/talia_core/semantic_property.rb +1 -0
- data/lib/talia_core/semantic_relation.rb +1 -0
- data/test/talia_core/active_source_test.rb +13 -0
- metadata +71 -59
- data/generators/talia_admin/templates/controllers/admin/background_controller.rb +0 -52
- data/generators/talia_admin/templates/controllers/admin/custom_templates_controller.rb +0 -25
- data/generators/talia_admin/templates/controllers/admin/locales_controller.rb +0 -15
- data/generators/talia_admin/templates/controllers/admin/roles_controller.rb +0 -8
- data/generators/talia_admin/templates/controllers/admin/sources_controller.rb +0 -9
- data/generators/talia_admin/templates/controllers/admin/translations_controller.rb +0 -61
- data/generators/talia_admin/templates/controllers/admin/users_controller.rb +0 -10
- data/generators/talia_admin/templates/controllers/admin_controller.rb +0 -7
- data/generators/talia_admin/templates/helpers/admin/background_helper.rb +0 -60
- data/generators/talia_admin/templates/helpers/admin/custom_templates_helper.rb +0 -5
- data/generators/talia_admin/templates/helpers/admin/locales_helper.rb +0 -2
- data/generators/talia_admin/templates/helpers/admin/roles_helper.rb +0 -2
- data/generators/talia_admin/templates/helpers/admin/sources_helper.rb +0 -65
- data/generators/talia_admin/templates/helpers/admin/translations_helper.rb +0 -51
- data/generators/talia_admin/templates/helpers/admin/users_helper.rb +0 -11
- data/generators/talia_admin/templates/helpers/admin_helper.rb +0 -30
- data/generators/talia_admin/templates/migrations/populate_users.rb +0 -14
- data/generators/talia_admin/templates/models/role.rb +0 -3
- data/generators/talia_admin/templates/public/javascripts/backend.js +0 -24
- data/generators/talia_admin/templates/public/stylesheets/talia_core/backend.css +0 -463
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/body_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/footer_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/header.jpg +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/header_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/menu.jpg +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/menu_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/opednid.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/page_bg.jpg +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/triangolino.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/triangolino_full.gif +0 -0
- data/generators/talia_admin/templates/test/functional/admin/locales_controller_test.rb +0 -35
- data/generators/talia_admin/templates/test/functional/admin/sources_controller_test.rb +0 -109
- data/generators/talia_admin/templates/test/functional/admin/translations_controller_test.rb +0 -93
- data/generators/talia_admin/templates/test/functional/admin/users_controller_test.rb +0 -67
- data/generators/talia_admin/templates/test/functional/admin_controller_test.rb +0 -15
- data/generators/talia_admin/templates/views/admin/background/_finished.html.erb +0 -9
- data/generators/talia_admin/templates/views/admin/background/_pending.html.erb +0 -1
- data/generators/talia_admin/templates/views/admin/background/_progress.html.erb +0 -15
- data/generators/talia_admin/templates/views/admin/background/_running.html.erb +0 -11
- data/generators/talia_admin/templates/views/admin/background/environment.html.erb +0 -12
- data/generators/talia_admin/templates/views/admin/background/show.html.erb +0 -17
- data/generators/talia_admin/templates/views/admin/background/stderr.html.erb +0 -6
- data/generators/talia_admin/templates/views/admin/background/stdin.html.erb +0 -6
- data/generators/talia_admin/templates/views/admin/background/stdout.html.erb +0 -6
- data/generators/talia_admin/templates/views/admin/custom_templates/_content_form_column.rhtml +0 -2
- data/generators/talia_admin/templates/views/admin/custom_templates/_template_type_form_column.rhtml +0 -2
- data/generators/talia_admin/templates/views/admin/index.html.erb +0 -5
- data/generators/talia_admin/templates/views/admin/locales/new.html.erb +0 -9
- data/generators/talia_admin/templates/views/admin/sources/_show.html.erb +0 -13
- data/generators/talia_admin/templates/views/admin/translations/_new_translation.html.erb +0 -7
- data/generators/talia_admin/templates/views/admin/translations/_translation.html.erb +0 -10
- data/generators/talia_admin/templates/views/admin/translations/edit.html.erb +0 -16
- data/generators/talia_admin/templates/views/layouts/admin.html.erb +0 -56
- data/generators/talia_base/templates/script/setup_talia_backend +0 -43
@@ -0,0 +1,543 @@
|
|
1
|
+
<!-- AUTOMATICALLY GENERATED FILE - DO NOT EDIT -->
|
2
|
+
|
3
|
+
<!-- ====== Main Navigation ====== -->
|
4
|
+
|
5
|
+
<def tag="main-nav">
|
6
|
+
<navigation class="main-nav" merge-attrs param="default">
|
7
|
+
<nav-item href="#{base_url}/">Home</nav-item>
|
8
|
+
<nav-item with="&CustomTemplate"><ht key="custom_templates.nav_item">Custom Templates</ht></nav-item>
|
9
|
+
<nav-item with="&TaliaCollection"><ht key="talia_collections.nav_item">Talia Collections</ht></nav-item>
|
10
|
+
<nav-item with="&TaliaSource"><ht key="talia_sources.nav_item">Talia Sources</ht></nav-item>
|
11
|
+
<nav-item with="&User"><ht key="users.nav_item">Users</ht></nav-item>
|
12
|
+
</navigation>
|
13
|
+
</def>
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
<!-- ====== CustomTemplate Pages ====== -->
|
19
|
+
|
20
|
+
<def tag="index-page" for="CustomTemplate">
|
21
|
+
<page merge title="#{ht 'custom_templates.index.title', :default=>['Custom Templates'] }">
|
22
|
+
<body: class="index-page custom-template" param/>
|
23
|
+
|
24
|
+
<content: param>
|
25
|
+
<header param="content-header">
|
26
|
+
<h2 param="heading">
|
27
|
+
<ht key="custom_templates.index.heading">
|
28
|
+
Custom Templates
|
29
|
+
</ht>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<p param="count" if>
|
33
|
+
<ht key="custom_templates.collection.count" count="&this.size">
|
34
|
+
There <count prefix="are"/>
|
35
|
+
</ht>
|
36
|
+
</p>
|
37
|
+
</header>
|
38
|
+
|
39
|
+
<section param="content-body">
|
40
|
+
<a action="new" to="&model" param="new-link">
|
41
|
+
<ht key="custom_templates.actions.new">New Custom Template</ht>
|
42
|
+
</a>
|
43
|
+
|
44
|
+
<page-nav param="top-page-nav"/>
|
45
|
+
|
46
|
+
<collection param/>
|
47
|
+
|
48
|
+
<page-nav param="bottom-page-nav"/>
|
49
|
+
|
50
|
+
|
51
|
+
</section>
|
52
|
+
</content:>
|
53
|
+
</page>
|
54
|
+
</def>
|
55
|
+
|
56
|
+
|
57
|
+
<def tag="new-page" for="CustomTemplate">
|
58
|
+
<page merge title="#{ht 'custom_templates.new.title', :default=>[' New Custom Template'] }">
|
59
|
+
<body: class="new-page custom-template" param/>
|
60
|
+
|
61
|
+
<content: param>
|
62
|
+
<section param="content-header">
|
63
|
+
<h2 param="heading">
|
64
|
+
<ht key="custom_templates.new.heading">
|
65
|
+
New Custom Template
|
66
|
+
</ht>
|
67
|
+
</h2>
|
68
|
+
</section>
|
69
|
+
|
70
|
+
<section param="content-body">
|
71
|
+
<form param>
|
72
|
+
<submit: label="#{ht 'custom_templates.actions.create', :default=>['Create Custom Template']}"/>
|
73
|
+
</form>
|
74
|
+
</section>
|
75
|
+
</content:>
|
76
|
+
</page>
|
77
|
+
</def>
|
78
|
+
|
79
|
+
|
80
|
+
<def tag="show-page" for="CustomTemplate">
|
81
|
+
<page merge title="#{ht 'custom_templates.show.title', :default=>['Custom Template'] }">
|
82
|
+
|
83
|
+
<body: class="show-page custom-template" param/>
|
84
|
+
|
85
|
+
<content: param>
|
86
|
+
<header param="content-header">
|
87
|
+
<h2 param="heading">
|
88
|
+
<ht key="custom_templates.show.heading" name="&this.respond_to?(:name) ? this.name : ''">
|
89
|
+
<name/>
|
90
|
+
</ht>
|
91
|
+
</h2>
|
92
|
+
|
93
|
+
<record-flags fields="" param/>
|
94
|
+
|
95
|
+
<a action="edit" if="&can_edit?" param="edit-link">
|
96
|
+
<ht key="custom_templates.actions.edit" name="&this.respond_to?(:name) ? this.name : ''">
|
97
|
+
Edit Custom Template
|
98
|
+
</ht>
|
99
|
+
</a>
|
100
|
+
</header>
|
101
|
+
|
102
|
+
<section param="content-body">
|
103
|
+
<view:content param="description"/>
|
104
|
+
<field-list fields="template_type" param/>
|
105
|
+
</section>
|
106
|
+
</content:>
|
107
|
+
|
108
|
+
</page>
|
109
|
+
</def>
|
110
|
+
|
111
|
+
|
112
|
+
<def tag="edit-page" for="CustomTemplate">
|
113
|
+
<page merge title="#{ht 'custom_templates.edit.title', :default=>['Edit Custom Template'] }">
|
114
|
+
|
115
|
+
<body: class="edit-page custom-template" param/>
|
116
|
+
|
117
|
+
<content:>
|
118
|
+
<section param="content-header">
|
119
|
+
<h2 param="heading">
|
120
|
+
<ht key="custom_templates.edit.heading" name="&this.respond_to?(:name) ? this.name : ''">
|
121
|
+
Edit <type-name/>
|
122
|
+
</ht>
|
123
|
+
</h2>
|
124
|
+
<delete-button label="#{ht 'custom_templates.actions.delete', :default=>['Remove This Custom Template']}" param/>
|
125
|
+
</section>
|
126
|
+
|
127
|
+
<section param="content-body">
|
128
|
+
<form param/>
|
129
|
+
</section>
|
130
|
+
</content:>
|
131
|
+
|
132
|
+
</page>
|
133
|
+
</def>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
<!-- ====== TaliaCollection Pages ====== -->
|
140
|
+
|
141
|
+
<def tag="index-page" for="TaliaCollection">
|
142
|
+
<page merge title="#{ht 'talia_collections.index.title', :default=>['Talia Collections'] }">
|
143
|
+
<body: class="index-page talia-collection" param/>
|
144
|
+
|
145
|
+
<content: param>
|
146
|
+
<header param="content-header">
|
147
|
+
<h2 param="heading">
|
148
|
+
<ht key="talia_collections.index.heading">
|
149
|
+
Talia Collections
|
150
|
+
</ht>
|
151
|
+
</h2>
|
152
|
+
|
153
|
+
<p param="count" if>
|
154
|
+
<ht key="talia_collections.collection.count" count="&this.size">
|
155
|
+
There <count prefix="are"/>
|
156
|
+
</ht>
|
157
|
+
</p>
|
158
|
+
</header>
|
159
|
+
|
160
|
+
<section param="content-body">
|
161
|
+
<a action="new" to="&model" param="new-link">
|
162
|
+
<ht key="talia_collections.actions.new">New Talia Collection</ht>
|
163
|
+
</a>
|
164
|
+
|
165
|
+
<page-nav param="top-page-nav"/>
|
166
|
+
|
167
|
+
<collection param/>
|
168
|
+
|
169
|
+
<page-nav param="bottom-page-nav"/>
|
170
|
+
|
171
|
+
|
172
|
+
</section>
|
173
|
+
</content:>
|
174
|
+
</page>
|
175
|
+
</def>
|
176
|
+
|
177
|
+
|
178
|
+
<def tag="new-page" for="TaliaCollection">
|
179
|
+
<page merge title="#{ht 'talia_collections.new.title', :default=>[' New Talia Collection'] }">
|
180
|
+
<body: class="new-page talia-collection" param/>
|
181
|
+
|
182
|
+
<content: param>
|
183
|
+
<section param="content-header">
|
184
|
+
<h2 param="heading">
|
185
|
+
<ht key="talia_collections.new.heading">
|
186
|
+
New Talia Collection
|
187
|
+
</ht>
|
188
|
+
</h2>
|
189
|
+
</section>
|
190
|
+
|
191
|
+
<section param="content-body">
|
192
|
+
<form param>
|
193
|
+
<submit: label="#{ht 'talia_collections.actions.create', :default=>['Create Talia Collection']}"/>
|
194
|
+
</form>
|
195
|
+
</section>
|
196
|
+
</content:>
|
197
|
+
</page>
|
198
|
+
</def>
|
199
|
+
|
200
|
+
|
201
|
+
<def tag="show-page" for="TaliaCollection">
|
202
|
+
<page merge title="#{ht 'talia_collections.show.title', :default=>['Talia Collection'] }">
|
203
|
+
|
204
|
+
<body: class="show-page talia-collection" param/>
|
205
|
+
|
206
|
+
<content: param>
|
207
|
+
<header param="content-header">
|
208
|
+
<h2 param="heading">
|
209
|
+
<ht key="talia_collections.show.heading" name="&this.respond_to?(:name) ? this.name : ''">
|
210
|
+
<name/>
|
211
|
+
</ht>
|
212
|
+
</h2>
|
213
|
+
|
214
|
+
<record-flags fields="" param/>
|
215
|
+
|
216
|
+
<a action="edit" if="&can_edit?" param="edit-link">
|
217
|
+
<ht key="talia_collections.actions.edit" name="&this.respond_to?(:name) ? this.name : ''">
|
218
|
+
Edit Talia Collection
|
219
|
+
</ht>
|
220
|
+
</a>
|
221
|
+
</header>
|
222
|
+
|
223
|
+
<section param="content-body">
|
224
|
+
<field-list fields="uri" param/>
|
225
|
+
</section>
|
226
|
+
</content:>
|
227
|
+
|
228
|
+
</page>
|
229
|
+
</def>
|
230
|
+
|
231
|
+
|
232
|
+
<def tag="edit-page" for="TaliaCollection">
|
233
|
+
<page merge title="#{ht 'talia_collections.edit.title', :default=>['Edit Talia Collection'] }">
|
234
|
+
|
235
|
+
<body: class="edit-page talia-collection" param/>
|
236
|
+
|
237
|
+
<content:>
|
238
|
+
<section param="content-header">
|
239
|
+
<h2 param="heading">
|
240
|
+
<ht key="talia_collections.edit.heading" name="&this.respond_to?(:name) ? this.name : ''">
|
241
|
+
Edit <type-name/>
|
242
|
+
</ht>
|
243
|
+
</h2>
|
244
|
+
<delete-button label="#{ht 'talia_collections.actions.delete', :default=>['Remove This Talia Collection']}" param/>
|
245
|
+
</section>
|
246
|
+
|
247
|
+
<section param="content-body">
|
248
|
+
<form param/>
|
249
|
+
</section>
|
250
|
+
</content:>
|
251
|
+
|
252
|
+
</page>
|
253
|
+
</def>
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
<!-- ====== TaliaSource Pages ====== -->
|
260
|
+
|
261
|
+
<def tag="index-page" for="TaliaSource">
|
262
|
+
<page merge title="#{ht 'talia_sources.index.title', :default=>['Talia Sources'] }">
|
263
|
+
<body: class="index-page talia-source" param/>
|
264
|
+
|
265
|
+
<content: param>
|
266
|
+
<header param="content-header">
|
267
|
+
<h2 param="heading">
|
268
|
+
<ht key="talia_sources.index.heading">
|
269
|
+
Talia Sources
|
270
|
+
</ht>
|
271
|
+
</h2>
|
272
|
+
|
273
|
+
<p param="count" if>
|
274
|
+
<ht key="talia_sources.collection.count" count="&this.size">
|
275
|
+
There <count prefix="are"/>
|
276
|
+
</ht>
|
277
|
+
</p>
|
278
|
+
</header>
|
279
|
+
|
280
|
+
<section param="content-body">
|
281
|
+
<a action="new" to="&model" param="new-link">
|
282
|
+
<ht key="talia_sources.actions.new">New Talia Source</ht>
|
283
|
+
</a>
|
284
|
+
|
285
|
+
<page-nav param="top-page-nav"/>
|
286
|
+
|
287
|
+
<collection param/>
|
288
|
+
|
289
|
+
<page-nav param="bottom-page-nav"/>
|
290
|
+
|
291
|
+
|
292
|
+
</section>
|
293
|
+
</content:>
|
294
|
+
</page>
|
295
|
+
</def>
|
296
|
+
|
297
|
+
|
298
|
+
<def tag="new-page" for="TaliaSource">
|
299
|
+
<page merge title="#{ht 'talia_sources.new.title', :default=>[' New Talia Source'] }">
|
300
|
+
<body: class="new-page talia-source" param/>
|
301
|
+
|
302
|
+
<content: param>
|
303
|
+
<section param="content-header">
|
304
|
+
<h2 param="heading">
|
305
|
+
<ht key="talia_sources.new.heading">
|
306
|
+
New Talia Source
|
307
|
+
</ht>
|
308
|
+
</h2>
|
309
|
+
</section>
|
310
|
+
|
311
|
+
<section param="content-body">
|
312
|
+
<form param>
|
313
|
+
<submit: label="#{ht 'talia_sources.actions.create', :default=>['Create Talia Source']}"/>
|
314
|
+
</form>
|
315
|
+
</section>
|
316
|
+
</content:>
|
317
|
+
</page>
|
318
|
+
</def>
|
319
|
+
|
320
|
+
|
321
|
+
<def tag="show-page" for="TaliaSource">
|
322
|
+
<page merge title="#{ht 'talia_sources.show.title', :default=>['Talia Source'] }">
|
323
|
+
|
324
|
+
<body: class="show-page talia-source" param/>
|
325
|
+
|
326
|
+
<content: param>
|
327
|
+
<header param="content-header">
|
328
|
+
<h2 param="heading">
|
329
|
+
<ht key="talia_sources.show.heading" name="&this.respond_to?(:name) ? this.name : ''">
|
330
|
+
<name/>
|
331
|
+
</ht>
|
332
|
+
</h2>
|
333
|
+
|
334
|
+
<record-flags fields="" param/>
|
335
|
+
|
336
|
+
<a action="edit" if="&can_edit?" param="edit-link">
|
337
|
+
<ht key="talia_sources.actions.edit" name="&this.respond_to?(:name) ? this.name : ''">
|
338
|
+
Edit Talia Source
|
339
|
+
</ht>
|
340
|
+
</a>
|
341
|
+
</header>
|
342
|
+
|
343
|
+
<section param="content-body">
|
344
|
+
<field-list fields="uri, type" param/>
|
345
|
+
</section>
|
346
|
+
</content:>
|
347
|
+
|
348
|
+
</page>
|
349
|
+
</def>
|
350
|
+
|
351
|
+
|
352
|
+
<def tag="edit-page" for="TaliaSource">
|
353
|
+
<page merge title="#{ht 'talia_sources.edit.title', :default=>['Edit Talia Source'] }">
|
354
|
+
|
355
|
+
<body: class="edit-page talia-source" param/>
|
356
|
+
|
357
|
+
<content:>
|
358
|
+
<section param="content-header">
|
359
|
+
<h2 param="heading">
|
360
|
+
<ht key="talia_sources.edit.heading" name="&this.respond_to?(:name) ? this.name : ''">
|
361
|
+
Edit <type-name/>
|
362
|
+
</ht>
|
363
|
+
</h2>
|
364
|
+
<delete-button label="#{ht 'talia_sources.actions.delete', :default=>['Remove This Talia Source']}" param/>
|
365
|
+
</section>
|
366
|
+
|
367
|
+
<section param="content-body">
|
368
|
+
<form param/>
|
369
|
+
</section>
|
370
|
+
</content:>
|
371
|
+
|
372
|
+
</page>
|
373
|
+
</def>
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
<!-- ====== User Pages ====== -->
|
380
|
+
|
381
|
+
<def tag="index-page" for="User">
|
382
|
+
<page merge title="#{ht 'users.index.title', :default=>['Users'] }">
|
383
|
+
<body: class="index-page user" param/>
|
384
|
+
|
385
|
+
<content: param>
|
386
|
+
<header param="content-header">
|
387
|
+
<h2 param="heading">
|
388
|
+
<ht key="users.index.heading">
|
389
|
+
Users
|
390
|
+
</ht>
|
391
|
+
</h2>
|
392
|
+
|
393
|
+
<p param="count" if>
|
394
|
+
<ht key="users.collection.count" count="&this.size">
|
395
|
+
There <count prefix="are"/>
|
396
|
+
</ht>
|
397
|
+
</p>
|
398
|
+
</header>
|
399
|
+
|
400
|
+
<section param="content-body">
|
401
|
+
<a action="new" to="&model" param="new-link">
|
402
|
+
<ht key="users.actions.new">New User</ht>
|
403
|
+
</a>
|
404
|
+
|
405
|
+
<page-nav param="top-page-nav"/>
|
406
|
+
|
407
|
+
<collection param/>
|
408
|
+
|
409
|
+
<page-nav param="bottom-page-nav"/>
|
410
|
+
|
411
|
+
|
412
|
+
</section>
|
413
|
+
</content:>
|
414
|
+
</page>
|
415
|
+
</def>
|
416
|
+
|
417
|
+
|
418
|
+
<def tag="new-page" for="User">
|
419
|
+
<page merge title="#{ht 'users.new.title', :default=>[' New User'] }">
|
420
|
+
<body: class="new-page user" param/>
|
421
|
+
|
422
|
+
<content: param>
|
423
|
+
<section param="content-header">
|
424
|
+
<h2 param="heading">
|
425
|
+
<ht key="users.new.heading">
|
426
|
+
New User
|
427
|
+
</ht>
|
428
|
+
</h2>
|
429
|
+
</section>
|
430
|
+
|
431
|
+
<section param="content-body">
|
432
|
+
<form param>
|
433
|
+
<submit: label="#{ht 'users.actions.create', :default=>['Create User']}"/>
|
434
|
+
</form>
|
435
|
+
</section>
|
436
|
+
</content:>
|
437
|
+
</page>
|
438
|
+
</def>
|
439
|
+
|
440
|
+
|
441
|
+
<def tag="show-page" for="User">
|
442
|
+
<page merge title="#{ht 'users.show.title', :default=>['User'] }">
|
443
|
+
|
444
|
+
<body: class="show-page user" param/>
|
445
|
+
|
446
|
+
<content: param>
|
447
|
+
<header param="content-header">
|
448
|
+
<h2 param="heading">
|
449
|
+
<ht key="users.show.heading" name="&this.respond_to?(:name) ? this.name : ''">
|
450
|
+
<name/>
|
451
|
+
</ht>
|
452
|
+
</h2>
|
453
|
+
|
454
|
+
<record-flags fields="administrator" param/>
|
455
|
+
|
456
|
+
<a action="edit" if="&can_edit?" param="edit-link">
|
457
|
+
<ht key="users.actions.edit" name="&this.respond_to?(:name) ? this.name : ''">
|
458
|
+
Edit User
|
459
|
+
</ht>
|
460
|
+
</a>
|
461
|
+
</header>
|
462
|
+
|
463
|
+
<section param="content-body">
|
464
|
+
<field-list fields="email_address, state" param/>
|
465
|
+
</section>
|
466
|
+
</content:>
|
467
|
+
|
468
|
+
</page>
|
469
|
+
</def>
|
470
|
+
|
471
|
+
|
472
|
+
<def tag="edit-page" for="User">
|
473
|
+
<page merge title="#{ht 'users.edit.title', :default=>['Edit User'] }">
|
474
|
+
|
475
|
+
<body: class="edit-page user" param/>
|
476
|
+
|
477
|
+
<content:>
|
478
|
+
<section param="content-header">
|
479
|
+
<h2 param="heading">
|
480
|
+
<ht key="users.edit.heading" name="&this.respond_to?(:name) ? this.name : ''">
|
481
|
+
Edit <type-name/>
|
482
|
+
</ht>
|
483
|
+
</h2>
|
484
|
+
<delete-button label="#{ht 'users.actions.delete', :default=>['Remove This User']}" param/>
|
485
|
+
</section>
|
486
|
+
|
487
|
+
<section param="content-body">
|
488
|
+
<form param/>
|
489
|
+
</section>
|
490
|
+
</content:>
|
491
|
+
|
492
|
+
</page>
|
493
|
+
</def>
|
494
|
+
|
495
|
+
|
496
|
+
<def tag="signup-page" polymorphic/>
|
497
|
+
<def tag="signup-page" for="User">
|
498
|
+
|
499
|
+
<page title="#{ht 'users.signup.title', :default=>['Signup']}" merge>
|
500
|
+
|
501
|
+
<body: class="lifecycle-start-page signup-page" param/>
|
502
|
+
|
503
|
+
<content: param>
|
504
|
+
<header param="content-header">
|
505
|
+
<h2 param="heading">
|
506
|
+
<ht key="users.signup.heading">
|
507
|
+
Signup
|
508
|
+
</ht>
|
509
|
+
</h2>
|
510
|
+
</header>
|
511
|
+
|
512
|
+
<section param="content-body">
|
513
|
+
<signup-form param="form"/>
|
514
|
+
</section>
|
515
|
+
</content:>
|
516
|
+
|
517
|
+
</page>
|
518
|
+
</def>
|
519
|
+
|
520
|
+
<def tag="reset-password-page" polymorphic/>
|
521
|
+
<def tag="reset-password-page" for="User">
|
522
|
+
<page title="#{ht 'users.reset_password.title', :default=>['Reset Password']}" merge>
|
523
|
+
|
524
|
+
<body: class="lifecycle-transition-page reset-password-page" param/>
|
525
|
+
|
526
|
+
<content:>
|
527
|
+
<header param="content-header">
|
528
|
+
<h2 param="heading">
|
529
|
+
<ht key="users.reset_password.heading">
|
530
|
+
Reset Password
|
531
|
+
</ht>
|
532
|
+
</h2>
|
533
|
+
</header>
|
534
|
+
|
535
|
+
<section param="content-body">
|
536
|
+
<reset-password-form param="form"/>
|
537
|
+
</section>
|
538
|
+
</content:>
|
539
|
+
|
540
|
+
</page>
|
541
|
+
</def>
|
542
|
+
|
543
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<!-- AUTOMATICALLY GENERATED FILE - DO NOT EDIT -->
|
2
|
+
|
3
|
+
<def tag="card" for="CustomTemplate">
|
4
|
+
<card class="custom-template" param="default" merge>
|
5
|
+
<header: param>
|
6
|
+
<h4 param="heading"><name/></h4>
|
7
|
+
</header:>
|
8
|
+
<body: param>
|
9
|
+
<view:content param="description"/>
|
10
|
+
</body:>
|
11
|
+
</card>
|
12
|
+
</def>
|
13
|
+
|
14
|
+
<def tag="card" for="TaliaCollection">
|
15
|
+
<card class="talia-collection" param="default" merge>
|
16
|
+
<header: param>
|
17
|
+
<h4 param="heading"><name/></h4>
|
18
|
+
</header:>
|
19
|
+
</card>
|
20
|
+
</def>
|
21
|
+
|
22
|
+
<def tag="card" for="TaliaSource">
|
23
|
+
<card class="talia-source" param="default" merge>
|
24
|
+
<header: param>
|
25
|
+
<h4 param="heading"><name/></h4>
|
26
|
+
</header:>
|
27
|
+
</card>
|
28
|
+
</def>
|
29
|
+
|
30
|
+
<def tag="card" for="User">
|
31
|
+
<card class="user" param="default" merge>
|
32
|
+
<header: param>
|
33
|
+
<h4 param="heading"><a><name/></a></h4>
|
34
|
+
</header:>
|
35
|
+
</card>
|
36
|
+
</def>
|
37
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<!-- AUTOMATICALLY GENERATED FILE - DO NOT EDIT -->
|
2
|
+
|
3
|
+
<def tag="form" for="User">
|
4
|
+
<form merge param="default">
|
5
|
+
<error-messages param/>
|
6
|
+
<field-list fields="name, email_address, administrator, state" param/>
|
7
|
+
<div param="actions">
|
8
|
+
<submit label="#{ht 'users.actions.save', :default=>['Save']}" param/><or-cancel param="cancel"/>
|
9
|
+
</div>
|
10
|
+
</form>
|
11
|
+
</def>
|
12
|
+
|
13
|
+
<def tag="signup-form" polymorphic/>
|
14
|
+
<def tag="signup-form" for="User">
|
15
|
+
<form lifecycle="signup" merge param="default">
|
16
|
+
<error-messages param/>
|
17
|
+
<field-list fields="name, email_address, password, password_confirmation" param/>
|
18
|
+
<div param="actions">
|
19
|
+
<submit label="#{ht 'users.actions.signup', :default=>['Signup']}" param/><or-cancel param="cancel"/>
|
20
|
+
</div>
|
21
|
+
</form>
|
22
|
+
</def>
|
23
|
+
|
24
|
+
<def tag="reset-password-form" polymorphic/>
|
25
|
+
<def tag="reset-password-form" for="User">
|
26
|
+
<form lifecycle="reset_password" merge param="default">
|
27
|
+
<error-messages param/>
|
28
|
+
<input type="hidden" name="key" value="&this.lifecycle.provided_key" if="&this.lifecycle.provided_key"/>
|
29
|
+
<field-list fields="password, password_confirmation" param/>
|
30
|
+
<div param="actions">
|
31
|
+
<submit label="#{ht 'users.actions.reset_password', :default=>['Reset Password']}" param/><or-cancel param="cancel"/>
|
32
|
+
</div>
|
33
|
+
</form>
|
34
|
+
</def>
|
35
|
+
|