Skip to content

Commit b04748c

Browse files
festival: Update to the new datatype style
Among some other things, this: - Introduces class constants for all tag and attribute names in the page XML. - Updates process() to the new style, also handling commands there instead of using registerCommand. - Updates view / command method names to the new style. - Makes form generation and handling consistent, using hypha_substitute and making more parts translated. - Add makeActionButton and constructFullPath helpers (to be generalized later). - No longer uses global variables. - Use variable substitution when generating e-mails. - Return 404 where appropriate. - Styling is removed from the HTML and moved to the CSS file (except for the timetable, which should probably be rewritten anyway). This also makes some functional changes: - Signup and contribution forms now have a default value for when they are not specified in the XML (these would have to be manually edited in the XML file up until now). - E-mails are now stored as translation texts and no longer configurable in the page XML, since there was minimal customization in practice and this makes things simpler. This relates to #135 and #335.
1 parent b9fa862 commit b04748c

File tree

4 files changed

+689
-376
lines changed

4 files changed

+689
-376
lines changed

data/themes/default/hypha.css

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,57 @@ textarea{
862862
.festivalTimetable .tableRowHeadingEven {
863863
background-color:#bbb;
864864
}
865+
866+
.festivalForm th {
867+
text-align: right;
868+
}
869+
870+
.festivalForm input, .festivalForm select, .festivalForm textarea {
871+
width: 400px;
872+
}
873+
874+
.festivalForm textarea {
875+
height: 100px;
876+
}
877+
878+
.contribution h2 {
879+
clear: left;
880+
}
881+
882+
/* Include #main to override #main img */
883+
#main .contribution img {
884+
float: left;
885+
border: 0px;
886+
margin-right: 10px;
887+
}
888+
889+
.contribution .event {
890+
clear: left;
891+
}
892+
893+
.contribution .date {
894+
font-weight: bold;
895+
}
896+
897+
.contribution .time-and-place {
898+
margin-left: 1em;
899+
}
900+
901+
.contribution .website {
902+
clear: left;
903+
}
904+
905+
table.contributions .description,
906+
table.contributions .notes {
907+
padding-left: 50px;
908+
}
909+
910+
/* Include #main to override #main img */
911+
#main table.contributions .description img {
912+
float: left;
913+
margin: 5px 10px 0 0;
914+
}
915+
865916
body.type_peer_reviewed_article .input-wrapper.field_type_editor:not(.field_name_text) .wym_iframe iframe {
866917
height: 150px;
867918
}

0 commit comments

Comments
 (0)