<script>
    $(function () {ldelim}
        $('#twitterSettings').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
        {rdelim});
</script>

<form
        class="pkp_form"
        id="twitterSettings"
        method="POST"
        action="{url router=$smarty.const.ROUTE_COMPONENT op="manage" category="blocks" plugin=$pluginName verb="settings" save=true}"
>
    <!-- Always add the csrf token to secure your form -->
    {csrf}

    {fbvFormArea}
        <div class="pkp_notification">
            <div class="notifyWarning">
                {translate key="plugins.blocks.twitter.cookie.warning"}
            </div>
        </div>
		{fbvFormSection title="plugins.blocks.twitter.tweet.title"}
			{fbvElement type="text" id="tweetTitle" value=$tweetTitle}
		{/fbvFormSection}
		{fbvFormSection title="plugins.blocks.twitter.tweet.url"}
			{fbvElement type="url" id="tweetUrl" value=$tweetUrl}
		{/fbvFormSection}
		{fbvFormSection title="plugins.blocks.twitter.tweet.color"}
			{fbvElement type="text" id="tweetColor" value=$tweetColor}
		{/fbvFormSection}
		{fbvFormSection title="plugins.blocks.twitter.tweet.height"}
			{fbvElement type="text" id="tweetHeight" value=$tweetHeight}
		{/fbvFormSection}
		{fbvFormSection title="plugins.blocks.twitter.tweet.options"}
			{fbvElement type="text" id="tweetOptions" value=$tweetOptions}
		{/fbvFormSection}
		{fbvFormSection title="plugins.blocks.twitter.tweet.limit"}
			{fbvElement type="text" id="tweetDataLimit" value=$tweetDataLimit}
		{/fbvFormSection}
    {/fbvFormArea}
    {fbvFormButtons submitText="common.save"}
</form>