<commit_before><!-- ============================ CREATE EVENT UMBRELLA CAMPAIGN ============================ -->

<template name="createEvent">
	<div id="createPage" class="eventPage">
		{{#if getValue "eventUmbrellaSignupPageURL" }}
			<div class="eventMsgBox">
				<p style="color: red;"><strong>This event umbrella campaign has already been created.</strong></p>

				<table style="margin: 10px 0px 20px;">
					<tr><td>Notes</td><td>{{ getValue "notes" }}</td></tr>
					<tr><td>Event campaign title</td><td>{{ getValue "pageTitle" }}</td></tr>
					<tr><td>Event campaign short URL</td><td>{{ getValue "pageName" }}</td></tr>
					<tr><td>Sub event default title</td><td>{{ getValue "eventDefaultTitle" }}</td></tr>
					<tr><td>Sub event default size</td><td>{{ getValue "eventDefaultSize" }}</td></tr>
					<tr><td>Sub event default start time</td><td>{{ getValue "eventStartDate" }} {{ getValue "eventStartTime" }}</td></tr>
				</table>
				<button id="buttonEventBackToPages">Back to pages</button>
				<button id="buttonEventCreateSubEvents" style="background-color:#13D333;">Create sub events</button>
			</div>
		{{else}}
			<h1>Step 1: Create the umbrella event campaign</h1>
			<p>Note: all fields are mandatory except for "notes"</p>
			{{> templatePageNotes }}
			{{> templatePageTitle }}
			{{> templatePageName }}
			{{> templateEventDefaultTitle }}
			{{> templateEventDefaultSize }}
			{{> templateEventStartDate }}
			{{> templateEventStartTime }}
			<button id="buttonEventBackToPages">Back to pages</button>
			<button id="buttonEventSaveEventUmbrella">Save</button>
			<button id="buttonEventCreateUmbrella" style="background-color:#13D333;">Next</button>
	  		<div class="clear"></div>
			{{#if getValue "apiError"}}
				<div class="errorPopup">
					<p>ERROR</p>
					<p>{{getValue "apiError"}}</p>
					<button class="buttonErrorOK" style="background-color: #01E;">ok</button>
		  		</div>
		  	{{/if}}
		{{/if}}
	</div>
</template>

<template name="templateEventDefaultTitle">
	<div class="eventInputs">
		<div class="bodytext_desc event">Sub event default title</div>
		<div class="taf_title event"><input type="text" id="eventDefaultTitle" class="{{highlight "eventDefaultTitle"}}" value="{{getValue "eventDefaultTitle"}}"></div>
	</div>
</template>

<template name="templateEventDefaultSize">
	<div class="eventInputs">
		<div class="bodytext_desc event">Sub event default max attendees</div>
		<div class="taf_title event"><input type="text" id="eventDefaultSize" class="{{highlight "eventDefaultSize"}}" value="{{getValue "eventDefaultSize"}}"></div>
	</div>
</template>

<template name="templateEventStartDate">
	<div class="eventInputs">
		<div class="bodytext_desc event">Start date (YYYY-MM-DD)</div>
		<div class="taf_title event"><input type="text" id="eventStartDate" class="{{highlight "eventStartDate"}}" value="{{getValue "eventStartDate"}}"></div>
	</div>
</template>

<template name="templateEventStartTime">
	<div class="eventInputs">
		<div class="bodytext_desc event">Start time (HH:MM:SS)</div>
		<div class="taf_title event"><input type="text" id="eventStartTime" class="{{highlight "eventStartTime"}}" value="{{getValue "eventStartTime"}}"></div>
	</div>
</template>


<!-- ============================ CREATE SUBEVENTS ============================ -->

<template name="createSubEvents">
	<div id="createPage" class="eventPage">
		<h1>Step 2: Create sub events for event campaign "{{getValue "pageTitle"}}"</h1>
		{{#if getValue "subEventCreatedMsg"}}
			<div class="eventMsgBox">
				{{ getValue "subEventCreatedMsg" }}
			</div>
		{{/if}}
			{{> templateSubEventTitle }}
			{{> templateSubEventStartsAt }}
			{{> templateSubEventMaxAttendees }}
			{{> templateSubEventHostEmail }}
			{{> templateSubEventVenue }}
			{{> templateSubEventAddress1 }}
			{{> templateSubEventAddress2 }}
			{{> templateSubEventCity }}
			{{> templateSubEventState }}
			{{> templateSubEventZip }}
			{{> templateSubEventDirections }}
			{{> templateSubEventPublicDescription }}
			{{> templateSubEventNoteToAttendees}}
			<button id="buttonEventBackToPages">Back to pages</button>
			<button id="buttonEventCreateSubEvent" style="background-color:#13D333;">Create sub event</button>
  		<div class="clear"></div>
		{{#if getValue "apiError"}}
			<div class="errorPopup">
				<p>ERROR</p>
				<p>{{getValue "apiError"}}</p>
				<button class="buttonErrorOK" style="background-color: #01E;">ok</button>
	  		</div>
	  	{{/if}}
	</div>
</template>


<template name="templateSubEventTitle">
	<div class="eventInputs">
		<div class="bodytext_desc event">Title</div>
		<div class="taf_title event"><input type="text" id="subEventTitle" class="{{highlight "subEventTitle"}}" value="{{getValue "subEventTitle"}}"></div>
	</div>
</template>

<template name="templateSubEventMaxAttendees">
	<div class="eventInputs">
		<div class="bodytext_desc event">Max attendees</div>
		<div class="taf_title event"><input type="text" id="subEventMaxAttendees" class="{{highlight "subEventMaxAttendees"}}" value="{{getValue "subEventMaxAttendees"}}"></div>
	</div>
</template>

<template name="templateSubEventStartsAt">
	<div class="eventInputs">
		<div class="bodytext_desc event">Starts at (YYYY-MM-DD HH:MM:SS)</div>
		<div class="taf_title event"><input type="text" id="subEventStartsAt" class="{{highlight "subEventStartsAt"}}" value="{{getValue "subEventStartsAt"}}"></div>
	</div>
</template>

<template name="templateSubEventHostEmail">
	<div class="eventInputs">
		<div class="bodytext_desc event">Host email address</div>
		<div class="taf_title event"><input type="text" id="subEventHostEmail" class="{{highlight "subEventHostEmail"}}" value="{{getValue "subEventHostEmail"}}"></div>
	</div>
</template>

<template name="templateSubEventVenue">
	<div class="eventInputs">
		<div class="bodytext_desc event">Venue</div>
		<div class="taf_title event"><input type="text" id="subEventVenue" class="{{highlight "subEventVenue"}}" value="{{getValue "subEventVenue"}}"></div>
	</div>
</template>

<template name="templateSubEventAddress1">
	<div class="eventInputs">
		<div class="bodytext_desc event">Address1</div>
		<div class="taf_title event"><input type="text" id="subEventAddress1" class="{{highlight "subEventAddress1"}}" value="{{getValue "subEventAddress1"}}"></div>
	</div>
</template>

<template name="templateSubEventAddress2">
	<div class="eventInputs">
		<div class="bodytext_desc event">Address2 (optional)</div>
		<div class="taf_title event"><input type="text" id="subEventAddress2" class="{{highlight "subEventAddress2"}}" value="{{getValue "subEventAddress2"}}"></div>
	</div>
</template>

<template name="templateSubEventCity">
	<div class="eventInputs">
		<div class="bodytext_desc event">City</div>
		<div class="taf_title event"><input type="text" id="subEventCity" class="{{highlight "subEventCity"}}" value="{{getValue "subEventCity"}}"></div>
	</div>
</template>

<template name="templateSubEventState">
	<div class="eventInputs">
		<div class="bodytext_desc event">State (2 letter abbreviation)</div>
		<div class="taf_title event"><input type="text" id="subEventState" class="{{highlight "subEventState"}}" value="{{getValue "subEventState"}}"></div>
	</div>
</template>

<template name="templateSubEventZip">
	<div class="eventInputs">
		<div class="bodytext_desc event">Zip</div>
		<div class="taf_title event"><input type="text" id="subEventZip" class="{{highlight "subEventZip"}}" value="{{getValue "subEventZip"}}"></div>
	</div>
</template>

<template name="templateSubEventDirections">
	<div class="eventInputs">
		<div class="bodytext_desc event">Directions (no HTML) (optional)</div>
		<div class="taf_copy event"><textarea class="textbox {{highlight "subEventDirections"}}" rows="3" type="text" id="subEventDirections">{{getValue "subEventDirections"}}</textarea></div>
	</div>
</template>

<template name="templateSubEventPublicDescription">
	<div class="eventInputs">
		<div class="bodytext_desc event">Public description (no HTML) (optional)</div>
		<div class="taf_copy event"><textarea class="textbox {{highlight "subEventPublicDescription"}}" rows="3" type="text" id="subEventPublicDescription">{{getValue "subEventPublicDescription"}}</textarea></div>
	</div>
</template>

<template name="templateSubEventNoteToAttendees">
	<div class="eventInputs">
		<div class="bodytext_desc event">Note to attendees (optional)</div>
		<div class="taf_copy event"><textarea class="textbox {{highlight "subEventNoteToAttendees"}}" rows="3" type="text" id="subEventNoteToAttendees">{{getValue "subEventNoteToAttendees"}}</textarea></div>
	</div>
</template>

<commit_msg>Add link to created campaign's dashboard<commit_after><!-- ============================ CREATE EVENT UMBRELLA CAMPAIGN ============================ -->

<template name="createEvent">
	<div id="createPage" class="eventPage">
		{{#if getValue "eventUmbrellaSignupPageURL" }}
			<div class="eventMsgBox">
				<p style="color: red;"><strong>This event umbrella campaign has already been created.</strong></p>

				<p><a href="https://act.credoaction.com/dash/events/{{ getValue "pageName" }}/" target="_blank">Dashboard for this event</a></p>

				<table style="margin: 10px 0px 20px;">
					<tr><td>Notes</td><td>{{ getValue "notes" }}</td></tr>
					<tr><td>Event campaign title</td><td>{{ getValue "pageTitle" }}</td></tr>
					<tr><td>Event campaign short URL</td><td>{{ getValue "pageName" }}</td></tr>
					<tr><td>Sub event default title</td><td>{{ getValue "eventDefaultTitle" }}</td></tr>
					<tr><td>Sub event default size</td><td>{{ getValue "eventDefaultSize" }}</td></tr>
					<tr><td>Sub event default start time</td><td>{{ getValue "eventStartDate" }} {{ getValue "eventStartTime" }}</td></tr>
				</table>
				<button id="buttonEventBackToPages">Back to pages</button>
				<button id="buttonEventCreateSubEvents" style="background-color:#13D333;">Create sub events</button>
			</div>
		{{else}}
			<h1>Step 1: Create the umbrella event campaign</h1>
			<p>Note: all fields are mandatory except for "notes"</p>
			{{> templatePageNotes }}
			{{> templatePageTitle }}
			{{> templatePageName }}
			{{> templateEventDefaultTitle }}
			{{> templateEventDefaultSize }}
			{{> templateEventStartDate }}
			{{> templateEventStartTime }}
			<button id="buttonEventBackToPages">Back to pages</button>
			<button id="buttonEventSaveEventUmbrella">Save</button>
			<button id="buttonEventCreateUmbrella" style="background-color:#13D333;">Next</button>
	  		<div class="clear"></div>
			{{#if getValue "apiError"}}
				<div class="errorPopup">
					<p>ERROR</p>
					<p>{{getValue "apiError"}}</p>
					<button class="buttonErrorOK" style="background-color: #01E;">ok</button>
		  		</div>
		  	{{/if}}
		{{/if}}
	</div>
</template>

<template name="templateEventDefaultTitle">
	<div class="eventInputs">
		<div class="bodytext_desc event">Sub event default title</div>
		<div class="taf_title event"><input type="text" id="eventDefaultTitle" class="{{highlight "eventDefaultTitle"}}" value="{{getValue "eventDefaultTitle"}}"></div>
	</div>
</template>

<template name="templateEventDefaultSize">
	<div class="eventInputs">
		<div class="bodytext_desc event">Sub event default max attendees</div>
		<div class="taf_title event"><input type="text" id="eventDefaultSize" class="{{highlight "eventDefaultSize"}}" value="{{getValue "eventDefaultSize"}}"></div>
	</div>
</template>

<template name="templateEventStartDate">
	<div class="eventInputs">
		<div class="bodytext_desc event">Start date (YYYY-MM-DD)</div>
		<div class="taf_title event"><input type="text" id="eventStartDate" class="{{highlight "eventStartDate"}}" value="{{getValue "eventStartDate"}}"></div>
	</div>
</template>

<template name="templateEventStartTime">
	<div class="eventInputs">
		<div class="bodytext_desc event">Start time (HH:MM:SS)</div>
		<div class="taf_title event"><input type="text" id="eventStartTime" class="{{highlight "eventStartTime"}}" value="{{getValue "eventStartTime"}}"></div>
	</div>
</template>


<!-- ============================ CREATE SUBEVENTS ============================ -->

<template name="createSubEvents">
	<div id="createPage" class="eventPage">
		<h1>Step 2: Create sub events for event campaign "{{getValue "pageTitle"}}"</h1>
		{{#if getValue "subEventCreatedMsg"}}
			<div class="eventMsgBox">
				{{ getValue "subEventCreatedMsg" }}
			</div>
		{{/if}}
			{{> templateSubEventTitle }}
			{{> templateSubEventStartsAt }}
			{{> templateSubEventMaxAttendees }}
			{{> templateSubEventHostEmail }}
			{{> templateSubEventVenue }}
			{{> templateSubEventAddress1 }}
			{{> templateSubEventAddress2 }}
			{{> templateSubEventCity }}
			{{> templateSubEventState }}
			{{> templateSubEventZip }}
			{{> templateSubEventDirections }}
			{{> templateSubEventPublicDescription }}
			{{> templateSubEventNoteToAttendees}}
			<button id="buttonEventBackToPages">Back to pages</button>
			<button id="buttonEventCreateSubEvent" style="background-color:#13D333;">Create sub event</button>
  		<div class="clear"></div>
		{{#if getValue "apiError"}}
			<div class="errorPopup">
				<p>ERROR</p>
				<p>{{getValue "apiError"}}</p>
				<button class="buttonErrorOK" style="background-color: #01E;">ok</button>
	  		</div>
	  	{{/if}}
	</div>
</template>


<template name="templateSubEventTitle">
	<div class="eventInputs">
		<div class="bodytext_desc event">Title</div>
		<div class="taf_title event"><input type="text" id="subEventTitle" class="{{highlight "subEventTitle"}}" value="{{getValue "subEventTitle"}}"></div>
	</div>
</template>

<template name="templateSubEventMaxAttendees">
	<div class="eventInputs">
		<div class="bodytext_desc event">Max attendees</div>
		<div class="taf_title event"><input type="text" id="subEventMaxAttendees" class="{{highlight "subEventMaxAttendees"}}" value="{{getValue "subEventMaxAttendees"}}"></div>
	</div>
</template>

<template name="templateSubEventStartsAt">
	<div class="eventInputs">
		<div class="bodytext_desc event">Starts at (YYYY-MM-DD HH:MM:SS)</div>
		<div class="taf_title event"><input type="text" id="subEventStartsAt" class="{{highlight "subEventStartsAt"}}" value="{{getValue "subEventStartsAt"}}"></div>
	</div>
</template>

<template name="templateSubEventHostEmail">
	<div class="eventInputs">
		<div class="bodytext_desc event">Host email address</div>
		<div class="taf_title event"><input type="text" id="subEventHostEmail" class="{{highlight "subEventHostEmail"}}" value="{{getValue "subEventHostEmail"}}"></div>
	</div>
</template>

<template name="templateSubEventVenue">
	<div class="eventInputs">
		<div class="bodytext_desc event">Venue</div>
		<div class="taf_title event"><input type="text" id="subEventVenue" class="{{highlight "subEventVenue"}}" value="{{getValue "subEventVenue"}}"></div>
	</div>
</template>

<template name="templateSubEventAddress1">
	<div class="eventInputs">
		<div class="bodytext_desc event">Address1</div>
		<div class="taf_title event"><input type="text" id="subEventAddress1" class="{{highlight "subEventAddress1"}}" value="{{getValue "subEventAddress1"}}"></div>
	</div>
</template>

<template name="templateSubEventAddress2">
	<div class="eventInputs">
		<div class="bodytext_desc event">Address2 (optional)</div>
		<div class="taf_title event"><input type="text" id="subEventAddress2" class="{{highlight "subEventAddress2"}}" value="{{getValue "subEventAddress2"}}"></div>
	</div>
</template>

<template name="templateSubEventCity">
	<div class="eventInputs">
		<div class="bodytext_desc event">City</div>
		<div class="taf_title event"><input type="text" id="subEventCity" class="{{highlight "subEventCity"}}" value="{{getValue "subEventCity"}}"></div>
	</div>
</template>

<template name="templateSubEventState">
	<div class="eventInputs">
		<div class="bodytext_desc event">State (2 letter abbreviation)</div>
		<div class="taf_title event"><input type="text" id="subEventState" class="{{highlight "subEventState"}}" value="{{getValue "subEventState"}}"></div>
	</div>
</template>

<template name="templateSubEventZip">
	<div class="eventInputs">
		<div class="bodytext_desc event">Zip</div>
		<div class="taf_title event"><input type="text" id="subEventZip" class="{{highlight "subEventZip"}}" value="{{getValue "subEventZip"}}"></div>
	</div>
</template>

<template name="templateSubEventDirections">
	<div class="eventInputs">
		<div class="bodytext_desc event">Directions (no HTML) (optional)</div>
		<div class="taf_copy event"><textarea class="textbox {{highlight "subEventDirections"}}" rows="3" type="text" id="subEventDirections">{{getValue "subEventDirections"}}</textarea></div>
	</div>
</template>

<template name="templateSubEventPublicDescription">
	<div class="eventInputs">
		<div class="bodytext_desc event">Public description (no HTML) (optional)</div>
		<div class="taf_copy event"><textarea class="textbox {{highlight "subEventPublicDescription"}}" rows="3" type="text" id="subEventPublicDescription">{{getValue "subEventPublicDescription"}}</textarea></div>
	</div>
</template>

<template name="templateSubEventNoteToAttendees">
	<div class="eventInputs">
		<div class="bodytext_desc event">Note to attendees (optional)</div>
		<div class="taf_copy event"><textarea class="textbox {{highlight "subEventNoteToAttendees"}}" rows="3" type="text" id="subEventNoteToAttendees">{{getValue "subEventNoteToAttendees"}}</textarea></div>
	</div>
</template>


{'fraction_non_alphanumeric': 0.19971256108077035, 'fraction_numerical': 0.005288876113825812, 'mean_word_length': 6.892921960072595, 'pattern_counts': {'":': 0, '<': 511, '<?xml version=': 0, '>': 551, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7013322', 'n_tokens_mistral': 6015, 'n_tokens_neox': 5479, 'n_words': 1091}