src/polemictweet/templates/create_event.html
author grandjoncl
Thu, 14 Feb 2013 14:58:12 +0100
changeset 7 be0de27a1c77
parent 1 5a91860c5535
permissions -rw-r--r--
modifications in models an forms for the partners and organisators add of css blueprint
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     1
{% extends "polemictweet_base.html" %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     2
{% load i18n %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     3
{% load thumbnail %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     4
7
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
     5
	{% block css_import %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
     6
			<link rel="stylesheet" href="{{STATIC_URL}}css/create_event.css" />
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
     7
		
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
     8
	{% endblock %}
1
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     9
	{% block js_import %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    10
		<script type="text/javascript" src="{{STATIC_URL}}js/tiny_mce/tiny_mce.js"></script>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    11
		<script type="text/javascript" src="{{STATIC_URL}}js/jquery.min.js"></script>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    12
		<script type="text/javascript" src="{{STATIC_URL}}js/jquery.qtip.min.js"></script>
7
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    13
		<script type="text/javascript" src="{{STATIC_URL}}js/jquery-ui.min.js"></script>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    14
		<script type="text/javascript" src="{{STATIC_URL}}js/jquery.textchange.min.js"></script>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    15
		
1
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    16
		<script type="text/javascript" src="{{STATIC_URL}}js/jquery.formset.js"></script>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    17
		<script type="text/javascript" src="{{STATIC_URL}}js/event.js"></script>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    18
	{% endblock %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    19
	{% block js_declaration %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    20
		
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    21
	<script type="text/javascript">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    22
	
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    23
	var $j = jQuery.noConflict(); 
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    24
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    25
	// the function stopRKey prevents from the validation of the form if the user tape enter button while entering a field 
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    26
	function stopRKey(evt) {
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    27
	      var evt = (evt) ? evt : ((event) ? event : null);
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    28
	      var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    29
	      if ((evt.keyCode == 13) && (node.type=="text"))  {return false;}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    30
	    }
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    31
	
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    32
	tinyMCE.init({
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    33
	    mode: "textareas",
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    34
	    theme: "advanced",
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    35
        plugins : "autolink,lists,spellchecker,layer,table,save,advhr,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    36
	
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    37
     	theme_advanced_buttons1 : "save,newdocument,bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    38
        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,search,replace,bullist,numlist,outdent,indent,blockquote,undo,redo,link,unlink,anchor,cleanup,help,code,insertdate,inserttime,preview,forecolor,backcolor",
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    39
        theme_advanced_buttons3 : "tablecontrols,hr,removeformat,visualaid,sub,sup,charmap,emotions,iespell,advhr,ltr,rtl,fullscreen",
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    40
        theme_advanced_toolbar_location : "top",
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    41
        theme_advanced_toolbar_align : "left",
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    42
        theme_advanced_statusbar_location : "bottom",
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    43
        theme_advanced_resizing : true,
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    44
	});
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    45
	
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    46
	$j(document).ready(function(){
7
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    47
		init_events();
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    48
		
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    49
		$j("#elemslistcontainer").selectable({
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    50
			filter: ".shareline",
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    51
		});
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    52
		
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    53
		$j("#selectedpartnercontainer").selectable({
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    54
			filter: ".shareline",
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    55
		});
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    56
		
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    57
		$j("#selectedorganisatorcontainer").selectable({
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    58
			filter: ".shareline",
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    59
		});
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    60
			
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    61
		
1
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    62
    });
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    63
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    64
	document.onkeypress = stopRKey;
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    65
	
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    66
	</script>	
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    67
	{% endblock %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    68
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    69
	{% block content %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    70
	{{ event_form.errors }}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    71
    
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    72
	<div id="add_event" class="span-18 last">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    73
	{% if event_slug %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    74
		<div class="projectseventstitle">{% trans "Modify this event" %}</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    75
	{% else %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    76
		<div class="projectseventstitle">{% trans "Create event" %}</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    77
	{% endif %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    78
    
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    79
	<form action="{{ create_event_action }}" enctype="multipart/form-data" id="my_form" method="POST" enctype="multipart/form-data" >
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    80
	
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    81
        <div id="eventformhidden">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    82
		{% csrf_token %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    83
            <input type="hidden" name="form_status" value="{{form_status}}" id="event_form_status" />
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    84
            {% for hidden in form.hidden_fields %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    85
                {{ hidden }}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    86
            {% endfor %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    87
        </div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    88
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    89
        <div id="eventformfields" class="span-18 last">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    90
            	<div>{{ event_form.title.errors }}{{ event_form.title.label_tag }}{{event_form.title}}</div>
7
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    91
            	
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
    92
            	<a id="displayTranslateTitle" class="translateTitle">
1
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    93
					<span class="title">{% trans "Add translations" %}</span>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    94
				</a>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    95
                <div id="translate_title">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    96
                {% for language_code in translation_languages %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    97
                    <div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    98
                        <label for="id_title_{{language_code}}">event.title_{{language_code}}</label>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    99
                        <input type = "text" name = "title_{{language_code}}" id="id_title_{{language_code}}" ></input>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   100
                    </div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   101
                {% endfor %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   102
                </div>
7
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   103
               
1
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   104
                <div>{{ event_form.description.errors }}{{ event_form.description.label_tag }}{{event_form.description}}</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   105
                <a id="displayTranslateDescription" class="translateDescription">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   106
					<span class="title">{% trans "Add translations" %}</span>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   107
				</a>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   108
                <div id="translate_description">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   109
                {% for language_code in translation_languages %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   110
                    <div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   111
                        <label for="id_description_{{language_code}}">event.description_{{language_code}}</label>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   112
                        <textarea name = "description_{{language_code}}" id="id_description_{{language_code}}" ></textarea>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   113
                    </div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   114
                {% endfor %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   115
                </div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   116
                <div>{{ event_form.program.errors }}{{ event_form.program.label_tag }}{{event_form.program}}</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   117
                <a id="displayTranslateProgram" class="translateProgram">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   118
					<span class="title">{% trans "Add translations" %}</span>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   119
				</a>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   120
                <div id="translate_program">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   121
                {% for language_code in translation_languages %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   122
                    <div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   123
                        <label for="id_program_{{language_code}}">event.program_{{language_code}}</label>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   124
                        <textarea name = "program_{{language_code}}" id="id_program_{{language_code}}" ></textarea>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   125
                    </div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   126
                {% endfor %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   127
                </div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   128
               
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   129
                <div>{{ event_form.date_begin.errors }}{{ event_form.date_begin.label_tag }}{{event_form.date_begin}}</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   130
                <div>{{ event_form.date_end.errors }}{{ event_form.date_end.label_tag }}{{event_form.date_end}}</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   131
                <div>{{ event_form.hashtag.errors }}{{ event_form.hashtag.label_tag }}{{event_form.hashtag}}</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   132
                
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   133
                <div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   134
				{% trans "choose an event image" %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   135
				</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   136
				
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   137
				<table id="chooseeventpicturecontainer" >
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   138
				    <tr>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   139
				        <td class="leftcolumn">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   140
				            {% trans "Upload a new picture" %}<br/> (JPG, PNG, &lt;&nbsp;1&nbsp;Mo)
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   141
				        </td>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   142
				        <td>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   143
				        	<div>{{ event_form.event_image.errors }}{{event_form.event_image.label_tag}}{{event_form.event_image}}</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   144
				        </td>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   145
				    </tr>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   146
				</table>  
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   147
				  
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   148
		    	 <a id="displayTranslateEventImage" class="translateEventImage">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   149
					<span class="title">{% trans "Add translations" %}</span>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   150
				</a>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   151
		   
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   152
			    <div id="translate_event_image">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   153
				    {% for language_code in translation_languages %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   154
                   	<div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   155
	                        <label for="id_event_image_{{language_code}}">event.event_image_{{language_code}}</label>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   156
	                        <input name = "event_image_{{language_code}}" id="id_event_image_{{language_code}}" type="file" ></input>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   157
                    </div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   158
                	{% endfor %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   159
               	</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   160
               	
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   161
               	 <div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   162
				{% trans "choose an image for the organisator" %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   163
				</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   164
				
7
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   165
				<table id="chooseeventpicturecontainer">
1
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   166
				    <tr>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   167
				        <td class="leftcolumn">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   168
				            {% trans "Upload a new picture" %}<br/> (JPG, PNG, &lt;&nbsp;1&nbsp;Mo)
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   169
				        </td>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   170
				        <td>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   171
				        	<div>{{ event_form.event_logo.errors }}{{event_form.event_logo.label_tag}}{{event_form.event_logo}}</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   172
				        </td>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   173
				    </tr>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   174
				</table>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   175
			
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   176
				<div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   177
					<label for="id_groups">{% trans "add your event to a group" %}</label></br>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   178
					<select multiple="multiple" id="id_groups" name="groups">
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   179
						{% for group in groups %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   180
							{% if group in init_groups %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   181
								<option value="{{group.id}}" selected="selected" >{{group.title}}</option>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   182
							{% else %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   183
								<option value="{{group.id}}" >{{group.title}}</option>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   184
							{% endif %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   185
						{% endfor %}
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   186
					</select>
7
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   187
				</div>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   188
				<div>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   189
					<label for="id_partners">{% trans "add partners and organisators to your event" %}</label></br>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   190
				</div>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   191
				</br> 
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   192
				
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   193
				<div id="sharecontainer">
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   194
				<div class="partner_selector">
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   195
					
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   196
					<label for="id_partners">{% trans "All partners" %}</label></br>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   197
					
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   198
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   199
					<table id="elemslistcontainer" class="multiple_choice_box">
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   200
						{% for partner in partners %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   201
							{% if partner not in old_partners and partner not in old_organisators %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   202
								<tr class="shareline">	
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   203
							        <td>{{ partner.name }}</td>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   204
							        <input type="hidden" value="{{ partner.id }}"/>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   205
							    </tr>	
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   206
							{% endif %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   207
						{% endfor %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   208
					</table>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   209
				</div>	
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   210
				 <div id="selectors_partner" class="choice_button">
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   211
					<a href="#" id="selectpartners">{% trans "select partners" %}</a><br />
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   212
					<a href="#" id="removepartners">{% trans "remove partners" %}</a>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   213
				</div>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   214
				
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   215
				<div class="partner_selector">
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   216
					<label for="id_partners_event">{% trans "Partners" %}</label></br>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   217
					
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   218
					<table id="selectedpartnercontainer" class="multiple_choice_box">
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   219
						{% for partner in old_partners %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   220
							<tr class="shareline">	
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   221
							      <td>{{ partner.name }}</td>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   222
							     <input type="hidden" value="{{ partner.id }}"/>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   223
							 </tr>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   224
						{% endfor %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   225
					</table>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   226
				</div>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   227
				
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   228
				<div id="selectors_organisator" class="choice_button">
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   229
					<a href="#" id="selectorganisator">{% trans "select organisators" %}</a><br />
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   230
					<a href="#" id="removeorganisator">{% trans "remove organisators" %}</a>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   231
				</div>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   232
				<div class="partner_selector"> 
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   233
					<label for="id_partners_event">{% trans "Organisators" %}</label></br>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   234
					
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   235
					<table id="selectedorganisatorcontainer" class="multiple_choice_box">
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   236
						{% for organisator in old_organisators %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   237
							<tr class="shareline">	
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   238
							      <td>{{ organisator.name }}</td>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   239
							     <input type="hidden" value="{{ organisator.id }}"/>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   240
							 </tr>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   241
						{% endfor %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   242
					</table>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   243
				</div>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   244
			</div> 
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   245
		
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   246
			<div id="partners_event">
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   247
				{% for partner in old_partners %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   248
					<input type="hidden" value="{{ partner.id }}" name="partners"/>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   249
				{% endfor %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   250
			
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   251
			</div>
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   252
		
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   253
			<div id="organisators_event">
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   254
				{% for organisator in old_organisators %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   255
					<input type="hidden" value="{{ organisator.id }}" name="organisators" />
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   256
				{% endfor %}
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   257
			</div>			  
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   258
				
1
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   259
        </div>
7
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   260
        </br> 
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   261
        
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   262
    
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   263
        <div id="submitevent">
be0de27a1c77 modifications in models an forms for the partners and organisators
grandjoncl
parents: 1
diff changeset
   264
            <div id="submitevent-buttons">
1
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   265
                <button type="submit" value="close" name="submit_button" id="submit_button_close">{% trans 'close_cancel' %}</button>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   266
                <button type="submit" value="write" name="submit_button" id="submit_button_write">{% trans "write" %}</button>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   267
            </div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   268
        </div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   269
	
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   270
	</form>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   271
	</div>
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   272
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
   273
{% endblock %}