summaryrefslogtreecommitdiff
path: root/views/partials/eventGroupForm.handlebars
blob: 5cc8b406c7155f0d334d6c3a0b8bc00e8f63cb76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<input type="hidden" name="magicLinkToken" value="{{magicLinkToken}}" x-ref="magicLinkToken">
<div class="form-group">
    <label for="eventGroupName">{{t "common.eventgroupname" }}</label>
    <input type="text" class="form-control" id="eventGroupName" name="eventGroupName" placeholder="{{t "views.partials.snappy" }}" x-model="data.eventGroupName">
</div>
<div class="form-group">
    <label for="eventGroupDescription">{{t "views.partials.eventgroupform.eventgroupddesc" }}</label>
    <textarea class="form-control" id="eventGroupDescription" name="eventGroupDescription" x-model="data.eventGroupDescription">{{eventGroupData.description}}</textarea>
    <small class="form-text">{{{t "views.partials.mdsupport" }}}</small>
</div>
<div class="form-group">
    <label for="eventGroupURL">{{t "views.partials.eventgroupform.eventgroupurl" }}</label>
    <input type="url" class="form-control" id="eventGroupURL" name="eventGroupURL" placeholder="https://example.com" x-model="data.eventGroupURL">
    <small class="form-text">{{t "views.partials.eventgroupform.eventgroupurldesc" }}</small>
</div>
<div class="form-group">
    <label for="hostName">{{t "views.partials.eventgroupform.hostname" }}</label>
    <input type="text" class="form-control" id="eventGroupHostName" name="hostName" placeholder="{{t "views.partials.eventgroupform.isshowningroup" }}"  x-model="data.hostName">
</div>
<div class="form-group">
    <label for="creatorEmail">{{t "views.partials.eventgroupform.creatoremail" }}</label>
    <div class="form-group">
        <input type="email" class="form-control" id="eventGroupCreatorEmail" name="creatorEmail" placeholder="{{t "views.partials.wontshow" }}" x-model.fill="data.creatorEmail" {{#if creatorEmail}}value="{{creatorEmail}}" readonly{{/if}}>
        <small class="form-text">{{t "views.partials.creatoremaildesc" }}</small>
    </div>
</div>
<div class="form-group">
    <label>{{t "common.coverimg" }}</label>
    <div class="image-preview" id="group-image-preview">
        <label for="eventGroupImageUpload" id="group-image-label">{{t "views.partials.choosefile" }}</label>
        <input type="file" name="imageUpload" id="group-image-upload" accept="image/jpeg,image/gif,image/png" x-ref="eventGroupImageUpload"/>
    </div>
    <small class="form-text">{{t "views.partials.recommendeddimensions" }}</small>
</div>
{{#if showPublicEventList}}
  <div class="form-group">
    <label>{{{t "views.partials.eventgroup.options" }}}</label>
    <div class="form-check">
      <input class="form-check-input" type="checkbox" id="publicGroupCheckbox" name="publicCheckbox" x-model="data.publicCheckbox">
      <label class="form-check-label" for="publicGroupCheckbox">
        {{t "views.partials.eventgroupform.publicgroup" }}
      </label>
    </div>
  </div>
{{/if}}
<div class="form-group">
  <div class="col-12">
    <div
      class="alert alert-danger"
      role="alert"
      x-show="errors.length > 0"
    >
      <p><i class="fas fa-exclamation-triangle"></i> {{t "views.partials.fixerrors" }}</p>
      <ul>
        <template x-for="error in errors">
          <li x-html="error.message"></li>
        </template>
      </ul>
    </div>
  </div>
</div>