-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meetup-Events können nun in die Softwerkskammer gespiegelt werden #1362
Changes from all commits
a5e71d1
10ea157
36b0b43
6df868b
becfb68
f660b2e
2c97642
2ea0b71
b319a1c
bf1219f
e5753ee
c279234
513e55a
648a500
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,36 +15,39 @@ mixin activityform(activity, groups, editorNames, participantNames) | |
| #{t('activities.edit')} | ||
else | ||
| #{t('activities.create')} | ||
p #{t('activities.helptext')} | ||
a(href='/wiki/hilfe/activities-hilfe') #{t('activities.helplink')} | ||
if (activity.clonedFromMeetup()) | ||
p #{t('activities.cloned_from_meetup_text')} | ||
else | ||
p #{t('activities.helptext')} | ||
a(href='/wiki/hilfe/activities-hilfe') #{t('activities.helplink')} | ||
.row | ||
.col-md-6 | ||
+text('title', t('activities.title'), activity.title(), t('activities.tooltip.title')) | ||
+text('title', t('activities.title'), activity.title(), t('activities.tooltip.title'), '', activity.clonedFromMeetup()) | ||
.row | ||
.col-xs-6(style='padding-right:5px') | ||
.col-xs-6(style='padding-left:0px;padding-right:3px') | ||
+date('startDate', t('activities.start'), activity.startMoment().locale(language).format('L'), t('activities.tooltip.start')) | ||
+date('startDate', t('activities.start'), activity.startMoment().locale(language).format('L'), t('activities.tooltip.start'), activity.clonedFromMeetup()) | ||
.col-xs-6(style='padding-left:3px;padding-right:0px') | ||
+time('startTime', activity.startMoment().locale(language).format('LT')) | ||
+time('startTime', activity.startMoment().locale(language).format('LT'), activity.clonedFromMeetup()) | ||
.col-xs-6(style='padding-left:5px') | ||
.col-xs-6(style='padding-left:0px;padding-right:3px') | ||
+date('endDate', t('activities.end'), activity.endMoment().locale(language).format('L'), t('activities.tooltip.end')) | ||
+date('endDate', t('activities.end'), activity.endMoment().locale(language).format('L'), t('activities.tooltip.end'), activity.clonedFromMeetup()) | ||
#dates.col-xs-6(style='padding-left:3px;padding-right:0px') | ||
+time('endTime', activity.endMoment().locale(language).format('LT')) | ||
+textarea('description', t('general.description'), activity.description()) | ||
+textarea('direction', t('activities.directions'), activity.direction()) | ||
+time('endTime', activity.endMoment().locale(language).format('LT'), activity.clonedFromMeetup()) | ||
+textarea('description', t('general.description'), activity.description(), '', '', activity.clonedFromMeetup()) | ||
+textarea('direction', t('activities.directions'), activity.direction(), '', '', activity.clonedFromMeetup()) | ||
+editableMultiselect('editorIds', t('activities.editors'), editorNames, participantNames) | ||
.col-md-6 | ||
.form-group | ||
+controlLabel('url', t('activities.address_suffix'), t('activities.tooltip.address_suffix')) | ||
input.form-control#url(type='text', name='url', value=activity.url()) | ||
+text('location', t('activities.location'), activity.location()) | ||
input.form-control#url(type='text', name='url', value=activity.url(), disabled=activity.clonedFromMeetup()) | ||
+text('location', t('activities.location'), activity.location(), '', '', activity.clonedFromMeetup()) | ||
.form-group | ||
+controlLabel('preview', 'Preview') | ||
#map.hidden-print(style='width: ' + '100%' + '; height: ' + '420px') | ||
.form-group | ||
label.control-label(for='assignedGroup') #{t('groups.group')}: | ||
select#assignedGroup.form-control.enhance(name='assignedGroup') | ||
select#assignedGroup.form-control.enhance(name='assignedGroup', disabled=activity.clonedFromMeetup()) | ||
for group in groups | ||
option(value=group.id, selected = (activity.assignedGroup() != undefined && activity.assignedGroup() == group.id)) #{group.longName} | ||
.row | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hier willst Du "readonly" setzen wenn aus Meetup. Richtig? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ich glaube, dass das hier kein Mixin ist, sondern eine Pug-Komponente, deswegen will ich hier disabled setzen. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
extends ../../../views/layout | ||
include ../../../../commonComponents/pug/formComponents | ||
include activities-mixins | ||
|
||
block title | ||
|
@@ -8,18 +9,22 @@ block content | |
.row | ||
.col-md-12 | ||
.page-header | ||
.btn-group.pull-right | ||
.btn-group | ||
a.btn.btn-default.dropdown-toggle(data-toggle='dropdown') | ||
| #{range} | ||
span.caret | ||
ul.dropdown-menu | ||
li: a(href='/activities/upcoming') #{t('activities.upcoming')} | ||
li: a(href='/activities/past') #{t('activities.past')} | ||
li: a(href='/activities') #{t('general.all')} | ||
li: a(href='/activities/gdcr') #{t('general.gdcr_activities')} | ||
a.btn.btn-default(href=webcalURL, title=t('activities.export_subscribe')): i.fa.fa-calendar.fa-fw | ||
if (accessrights.canCreateActivity()) | ||
a.btn.btn-default(href='new/', title=t('activities.new')): i.fa.fa-file-o.fa-fw | ||
form(role='form', method='POST', action='clone-from-meetup/') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Warum das Form um alles herum? - Ich fände es besser, wenn es nur um den Meetup button ist There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hab ich probiert, aber dann wird die Buttonleiste unterbrochen (also in zwei Stücke gehackt). Wenn Du das reparieren kannst, ändere ich das gern wieder. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK |
||
+csrf | ||
.btn-group.pull-right | ||
.btn-group | ||
a.btn.btn-default.dropdown-toggle(data-toggle='dropdown') | ||
| #{range} | ||
span.caret | ||
ul.dropdown-menu | ||
li: a(href='/activities/upcoming') #{t('activities.upcoming')} | ||
li: a(href='/activities/past') #{t('activities.past')} | ||
li: a(href='/activities') #{t('general.all')} | ||
li: a(href='/activities/gdcr') #{t('general.gdcr_activities')} | ||
a.btn.btn-default(href=webcalURL, title=t('activities.export_subscribe')): i.fa.fa-calendar.fa-fw | ||
if (accessrights.isSuperuser()) | ||
button.btn.btn-default(type='submit'): i.fa.fa-meetup.fa-fw | ||
if (accessrights.canCreateActivity()) | ||
a.btn.btn-default(href='new/', title=t('activities.new')): i.fa.fa-file-o.fa-fw | ||
h2 #{t('activities.activities')} | ||
+activityList(activities) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Muss readonly jetzt immer gesetzt werden? - Sonst steht da readonly = undefined...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wo steht das? Im fertigen HTML sehe ich nix davon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. Ich hätte das vermutet, wenn man es nicht setzt...