Revision 1954d761

b/snf-astakos-app/astakos/im/static/im/css/modules.css
327 327
table.alt-style tr td.info-td div				{ padding:15px; border:1px dashed #000 }
328 328
table.alt-style tr td a.more-info				{ display:block; float:left; width:17px; height:16px; background:url(../images/plus-minus.png) no-repeat 0 0; margin-right:5px; }
329 329
table.alt-style tr td a.more-info:hover			{ background-image:url(../images/plus-minus-hover.png); text-decoration:none;}
330
table.alt-style tr td a.open					{ background-position:-16px 0} 
330
table.alt-style tr td a.open					{ background-position:-16px 0} 
331

  
332
.projects .details a.edit						{ float:right; }
333
.projects .editable form textarea				{ width:70%; height:50px; max-width:70%;}
b/snf-astakos-app/astakos/im/static/im/js/common.js
209 209
		$(this).toggleClass('open');
210 210
		$(this).parents('tr').next('tr').toggle();
211 211
		 
212
	});
213
	
214
	$('.projects .details .edit').click( function(e){
215
		e.preventDefault();
216
		$(this).parents('.details').children('.data').hide();
217
		$(this).parents('.details').children('.editable').show();
218
		$(this).hide();
212 219
	})
213 220
	
214 221
});
b/snf-astakos-app/astakos/im/templates/im/astakosgroup_detail.html
7 7
	
8 8
	<h2>
9 9
	 	{% if request.user in object.members %}
10
			<em>[ ENROLLED ]</em>		
10
			<em>
11
				{% if request.user in object.owner.all %}
12
					[ADMINISTRATOR]
13
				{%  else %}
14
					[ ENROLLED ]
15
				{% endif %}
16
			</em>		
11 17
		{% endif %}
12 18
	 	<span>[ {{object.kind|upper}} ]</span>  
13 19
	 </h2>
20
	 
14 21
	 <div class="details">
15
	 	<p>{{ object.desc }}</p>
16
	 	 <dl class="alt-style">
17
		 	<dt>Homepage url</dt>
18
		 	<dd>
19
		 		{% if object.homepage%}
20
		 			<a href="{{ object.homepage }}">{{ object.homepage }}</a>
21
		 		{% else %}
22
		 			Not set yet
23
		 		{% endif %}
24
		 	</dd>
25
		 </dl>
22
	 	{% if request.user in object.owner.all %}
23
	 		<a href="#" class="edit">[ EDIT GROUP INFO ]</a>
24
	 	{% endif %}
25
	 	<div class="data">
26
		 	<p>{{ object.desc }}</p>
27
		 	<dl class="alt-style">
28
			 	<dt>Homepage url</dt>
29
			 	<dd>
30
			 		{% if object.homepage%}
31
			 			<a href="{{ object.homepage }}">{{ object.homepage }}</a>
32
			 		{% else %}
33
			 			Not set yet
34
			 		{% endif %}
35
			 	</dd>
36
			 </dl>
37
		</div>
38
		<div class="editable" style="display:none;">
39
			<!-- demo form-->
40
			<form class="innerlabels" method="post" action=""><div style="display:none"><input type="hidden" value="d1d4677634f858843ca84e2cac5bbebc" name="csrfmiddlewaretoken" autocomplete="off"></div>
41
	           
42
	            <div class="form-errors all"></div>
43
				<div class="form-row   ">
44
				        
45
				     <p class="clearfix ">
46
				        <label for="id_homepage">Homepage</label>
47
				        <input type="text" id="id_homepage" name="homepage" autocomplete="off" value="{{ object.homepage }}">
48
				        <span class="extra-img">&nbsp;</span>
49
				        
50
				     </p>
51
				</div>
52
				
53
				<div class="form-row   ">
54
				        
55
				     <p class="clearfix ">
56
				        <label for="id_desc">Description</label>
57
				        <textarea name="desc" cols="40" rows="10" id="id_desc">{{ object.desc }}</textarea>
58
				        <span class="extra-img">&nbsp;</span>
59
				        
60
				     </p>
61
				</div>
62
				 
63
				<div class="form-row submit">
64
				     <input type="submit" value="SUBMIT" class="submit altcol" autocomplete="off">
65
				</div>
66
				</form>
67
			<!-- end of demo form-->
68
		</div>
26 69
	 </div>
27 70
	 <div class="full-dotted">
28 71
		 <h3>DETAILS:</h3>
b/snf-astakos-app/astakos/im/templates/im/astakosgroup_list.html
13 13
                <input type="submit" class="submit altcol" value="SEARCH" />
14 14
            </div>
15 15
    </form>
16
    
17
	<p><a href="">Show all groups</a></p>
16 18
    {% else %}
17 19
    <div class="projects">
18 20
		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. <br />You can <a href="{% url group_create_list %}">create a new group</a> or <a href="{% url group_search %}">join</a> to an existing one.</p>

Also available in: Unified diff