Last active
February 6, 2017 16:29
-
-
Save DonKoko/28bc5cc36b2a381c2860b0ee3ecd4841 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Evenementen | |
slug: events | |
# description: A description of the content type for the editors | |
label_field_name: name | |
order_by: _position | |
order_direction: asc | |
public_submission_enabled: true | |
public_submission_account_emails: [] | |
fields: | |
- name: | |
label: Evenement naam | |
type: string | |
required: true | |
localized: false | |
- type: | |
label: Type | |
type: select | |
required: true | |
localized: false | |
select_options: | |
- OKA bijeenkomsten | |
- Externe bijeenkomsten | |
- Overleg/vergadering van het bestuur | |
- open_for_public: | |
label: Open | |
type: boolean | |
required: false | |
hint: Geef hier aan of leden zich hiervoor kunnen aanmelden. | |
localized: false | |
- start_date: | |
label: Start datum | |
type: date_time | |
required: true | |
localized: false | |
- end_date: | |
label: Eind datum | |
type: date_time | |
required: true | |
localized: false | |
- description: | |
label: Omschrijving | |
type: text | |
required: true | |
hint: Geef hier een beschrijving van het evenement. | |
localized: false | |
- subscriptions: | |
label: Aanmeldingen | |
type: has_many | |
class_name: subscriptions | |
inverse_of: events | |
ui_enabled: true | |
- open_subscriptions: | |
label: Open subscriptions | |
type: has_many | |
class_name: open_subscriptions | |
inverse_of: events | |
ui_enabled: true | |
- attachments: | |
label: Bijlagen | |
type: has_many | |
class_name: event_attachments | |
inverse_of: event | |
ui_enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: Aanmelden for Evenement | |
slug: create_application | |
handle: open_application_create | |
listed: false | |
published: true | |
is_layout: false | |
--- | |
{% extends 'layouts/default' %} | |
{% block 'main' %} | |
<h1>{{ page.title }}</h1> | |
<div class="row"> | |
<div class="col-md-6"> | |
{% model_form 'open_subscriptions', success: '/', error: '/contact', class: 'p-t-40 p-b-80' %} | |
{% if open_subscription.errors %} | |
<p>The following errors occured:</p> | |
<ul> | |
{% for error in open_subscription.errors %} | |
<li>{{error[0] | capitalize}} - {{error[1]}}</li> | |
{% endfor %} | |
</ul> | |
{% endif %} | |
<div class="form-group form-group-default "> | |
<label>Evenement:</label> | |
<select class="form-control" required> | |
{% with_scope open_for_public: true %} | |
{% for event in contents.events %} | |
<option name="content[event]" value="{{ open_subscription.event }}">{{ event.name }}</option> | |
{% endfor %} | |
{% endwith_scope %} | |
</select> | |
</div> | |
<div class="form-group form-group-default "> | |
<label>Bedrijfsnaam:</label> | |
<input type="text" class="form-control" name="content[company_name]" value="{{ open_subscription.company_name }}" required> | |
</div> | |
<div class="row"> | |
<div class="col-sm-6"> | |
<div class="form-group form-group-default"> | |
<label>Email:</label> | |
<input type="email" class="form-control" name="content[email]" value="{{ open_subscription.email }}" placeholder="bijv. [email protected]" required> | |
</div> | |
</div> | |
<div class="col-sm-6"> | |
<div class="form-group form-group-default"> | |
<label>Telefoon:</label> | |
<input type="text" class="form-control" name="content[phone]" value="{{ open_subscription.phone }}" required> | |
</div> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-sm-6"> | |
<div class="form-group form-group-default"> | |
<label>Voornaam contactpersoon:</label> | |
<input type="email" class="form-control" name="content[contact_person_first_name]" value="{{ open_subscription.contact_person_first_name }}"> | |
</div> | |
</div> | |
<div class="col-sm-6"> | |
<div class="form-group form-group-default"> | |
<label>Achternaam contactpersoon:</label> | |
<input type="text" class="form-control" name="content[contact_person_last_name]" value="{{ open_subscription.contact_person_last_name }}" required> | |
</div> | |
</div> | |
</div> | |
<input type="submit" class="form-control"/> | |
{% endmodel_form %} | |
</div> | |
</div> | |
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Human readable name of this type | |
name: Open subscriptions | |
# Lowercase, underscored handle used to access this type | |
slug: open_subscriptions | |
# Explanatory text displayed in the back-office | |
# description: A description of the content type for the editors | |
# Slug of field used to identify entries by default, such as the title | |
label_field_name: company_name | |
# Valid values: manually, created_at, updated_at, or the slug of any field | |
order_by: manually | |
public_submission_enabled: true | |
# Valid values: asc (ascending) and desc (descending). Set to asc by default. | |
# order_direction: asc | |
# Specify a field slug to group entries by that field in the back-office. | |
# group_by: <your field> | |
# Activate public 'create' API (e.g for a contact form) | |
# public_submission_enabled: false | |
# Array of emails to be notified of new entries made with the public API | |
# public_submission_accounts: ['[email protected]'] | |
# Control the display of the content type in the back-office. | |
display_settings: | |
# seo: false # display the SEO tab for the content entries | |
# advanced: false # display the Advanced tab for the content entries | |
# position: 1 # position in the sidebar menu | |
hidden: true # hidden for authors? | |
# By default, the back-office displays the _label property (see label_field_name) of the content entry. This can be modified by writing your own Liquid template below: | |
# entry_template: '<a href="{{ link }}">{{ entry._label }}</a>' # The default template | |
# A list describing each field | |
fields: | |
- company_name: # The lowercase, underscored name of the field | |
label: Bedrijfsnaam # Human readable name of the field | |
type: string | |
required: true | |
# hint: Explanatory text displayed in the back office | |
localized: false | |
- phone: # The lowercase, underscored name of the field | |
label: Telefoon # Human readable name of the field | |
type: string | |
required: true | |
# hint: Explanatory text displayed in the back office | |
localized: false | |
- email: # The lowercase, underscored name of the field | |
label: E-mail # Human readable name of the field | |
type: string | |
required: true | |
# hint: Explanatory text displayed in the back office | |
localized: false | |
- contact_person_first_name: # The lowercase, underscored name of the field | |
label: Voornaam contactpersoon # Human readable name of the field | |
type: string | |
required: false | |
# hint: Explanatory text displayed in the back office | |
localized: false | |
- contact_person_last_name: # The lowercase, underscored name of the field | |
label: Achternaam contactpersoon # Human readable name of the field | |
type: string | |
required: true | |
# hint: Explanatory text displayed in the back office | |
localized: false | |
- event: | |
label: Evenement | |
type: belongs_to | |
class_name: events | |
required: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment