Skip to content

Commit

Permalink
add event venue
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Apr 14, 2009
1 parent f5cb962 commit 07cedca
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions plugins/Pixis-Plugin-Event/lib/Pixis/Plugin/Event/I18N/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ msgstr "%1 名"

msgid "Event Registration"
msgstr "参加登録"

msgid "Event Venue"
msgstr "場所"
18 changes: 15 additions & 3 deletions plugins/Pixis-Plugin-Event/root/forms/event/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ elements:
- Required
filters:
- HTMLEscape
- type: Textarea
rows: 5
cols: 40
name: address
label_loc: Event Venue
- type: Text
name: capacity
label_loc: Event Capacity
Expand All @@ -60,14 +65,21 @@ elements:
name: start_on
id: start_on_picker
label_loc: 開催日
constraints:
- Required
inflators:
- type: DateTime
parser:
strptime: '%m/%d/%Y'
- type: DateTime
time_zone: local
parser:
regex: '^(\d{2})/(\d{2})/(\d{4})$'
params: [month, day, year]
- type: Text
name: end_on
id: end_on_picker
label_loc: 終了日
constraints:
- type: Regex
regex: ^\d{2}/\d{2}/\d{4}$
filters:
- type: CopyValue
field: start_on
Expand Down

0 comments on commit 07cedca

Please sign in to comment.