<div class="admin_form">
	<form action="" method="post">
		<input name="csrf_token" type="hidden" value="<%= csrf_token %>" />

		<div>
			<label class="title"><%= i18n("board") %></label>
			<span class="fields">
				<select name="board_id">
					<option value="0" <%= announcement.board_id == 0 and 'selected' or '' %>><%= i18n("global") %></option>
					<% for _, board in ipairs(boards) do %>
					<option value="<%= board.id %>" <%= announcement.board_id == board.id and 'selected' or '' %>>/<%= board.name %>/ - <%= board.title %></option>
					<% end %>
				</select>
			</span>
		</div>

		<div>
			<label class="title"><%= i18n("announcement") %></label>
			<span class="fields">
				<input type="text" name="text" value="<%= announcement.text or '' %>" />
			</span>
		</div>

		<% if params.action == "create" then %>
		<button name="create_announcement"><%= i18n("create_ann") %></button>
		<% elseif params.action == "modify" then %>
		<button name="modify_announcement"><%= i18n("modify_ann") %></button>
		<% end %>
	</form>
</div>
