#!/bin/sh

#turn off auto expansion
set -f

_()
{
LANG=${in_language%%;*}.utf8 gettext "alterator-admin" "$1"
}


. /usr/share/alterator/build/backend3.sh

on_message()
{
	case "$in_action" in
		#information for renderer
		template)
			echo '('
			echo 'template "form"'
			echo 'url "admin.html"'
			echo 'help "admin.html"'
			echo ')'
			;;
		info)
			echo '('
			printf ' title "%s"' "`_ "System administrator"`"
			printf ' description "%s"' "`_ "Change administrator password, update SSL certificate"`"
			printf ' weight -90'
			echo ')'
			;;
		*)
			echo '#f'
			;;
	esac
}

message_loop
