forked from jonathanduperrier/pynn_graphical_editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modal_pop_dialog_2.html
197 lines (196 loc) · 14.4 KB
/
modal_pop_dialog_2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<div class="modal fade">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" ng-click="cancel()" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">{{title}}</h4>
</div>
<div class="modal-body">
<form id="form-pop-neurons" class="form-horizontal col-sm-12" role="form">
<!-- Text input-->
<div class="form-group col-sm-12">
<label class="control-label col-sm-2" for="name_value">Name : </label>
<div class="col-sm-10">
<input id="name_value" name="name_value" type="text" placeholder="Name..." class="form-control input-md" ng-model="name_value">
</div>
</div>
<div class="form-group col-sm-12">
<label class="control-label col-sm-2" for="synapse_type">Synapse type : </label>
<div class="col-sm-10">
<select id="synapse_type" name="synapse_type" class="form-control" ng-model="synapse_type">
<option value="static">Static</option>
<option value="TsodyksMarkram">Short-term plasticity mechanisms</option>
</select>
</div>
</div>
<div class="form-group col-sm-12">
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"><b>Parameters :</b></div>
<label class="control-label col-sm-2" for="synaptic_weight">weight : </label>
<div class="col-sm-3">
<input id="synaptic_weight" name="synaptic_weight" type="number" step="0.01" placeholder="weight..." class="form-control input-md" ng-model="synaptic_weight">
</div>
<div class="control-label col-sm-2"></div>
</div>
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"></div>
<label class="control-label col-sm-2" for="synaptic_delay">delay : </label>
<div class="col-sm-3">
<input id="synaptic_delay" name="synaptic_delay" type="number" step="0.01" placeholder="delay..." class="form-control input-md" ng-model="synaptic_delay">
</div>
<div class="control-label col-sm-2">ms</div>
</div>
</div>
<div class="form-group col-sm-12" ng-show="synapse_type == 'TsodyksMarkram'">
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"></div>
<label class="control-label col-sm-2" for="TsodyksMarkram_U">U : </label>
<div class="col-sm-3">
<input id="TsodyksMarkram_U" name="TsodyksMarkram_U" type="number" step="0.1" placeholder="U..." class="form-control input-md" ng-model="TsodyksMarkram_U">
</div>
<div class="control-label col-sm-2"></div>
</div>
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"></div>
<label class="control-label col-sm-2" for="TsodyksMarkram_tau_rec">tau_rec : </label>
<div class="col-sm-3">
<input id="TsodyksMarkram_tau_rec" name="TsodyksMarkram_tau_rec" type="number" step="0.1" placeholder="tau_rec..." class="form-control input-md" ng-model="TsodyksMarkram_tau_rec">
</div>
<div class="control-label col-sm-2">ms</div>
</div>
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"></div>
<label class="control-label col-sm-2" for="TsodyksMarkram_tau_facil">tau_facil : </label>
<div class="col-sm-3">
<input id="TsodyksMarkram_tau_facil" name="TsodyksMarkram_tau_facil" type="number" step="0.1" placeholder="tau_facil..." class="form-control input-md" ng-model="TsodyksMarkram_tau_facil">
</div>
<div class="control-label col-sm-2">ms</div>
</div>
</div>
<div class="form-group col-sm-12">
<label class="control-label col-sm-2" for="receptor_type">Receptor type : </label>
<div class="col-sm-10">
<select id="receptor_type" name="receptor_type" class="form-control" ng-model="receptor_type">
<option value="excitatory">Excitatory</option>
<option value="inhibitory">Inhibitory</option>
</select>
</div>
</div>
<div class="form-group col-sm-12">
<label class="control-label col-sm-2" for="connectors_type">Connectors type : </label>
<div class="col-sm-10">
<select id="connectors_type" name="connectors_type" class="form-control" ng-model="connectors_type">
<option value="AllToAll">AllToAll</option>
<option value="OneToOne">OneToOne</option>
<option value="FixedProbability">FixedProbability</option>
<!-- <option value="FromFile">FromFile</option> -->
<option value="FixedNumberPre">FixedNumberPre</option>
<option value="FixedNumberPost">FixedNumberPost</option>
<option value="FixedTotalNumber">FixedTotalNumber</option>
</select>
</div>
</div>
<div class="form-group col-sm-12" ng-show="connectors_type == 'AllToAll'">
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"><b>Parameters :</b></div>
<label class="control-label col-sm-2" for="AllToAll_allow_self_connections">allow self connections : </label>
<div class="col-sm-3">
<input id="AllToAll_allow_self_connections" name="AllToAll_allow_self_connections" type="checkbox" class="form-check-input" ng-model="AllToAll_allow_self_connections">
</div>
</div>
</div>
<div class="form-group col-sm-12" ng-show="connectors_type == 'FixedProbability'">
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"><b>Parameters :</b></div>
<label class="control-label col-sm-2" for="FixedProbability_p_connect">p_connect : </label>
<div class="col-sm-3">
<input id="FixedProbability_p_connect" name="FixedProbability_p_connect" type="number" min="0" step="0.001" placeholder="p_connect..." class="form-control input-md" ng-model="FixedProbability_p_connect">
</div>
</div>
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"> </div>
<label class="control-label col-sm-2" for="FixedProbability_allow_self_connections">allow self connections : </label>
<div class="col-sm-3">
<input id="FixedProbability_allow_self_connections" name="FixedProbability_allow_self_connections" type="checkbox" class="form-check-input" ng-model="FixedProbability_allow_self_connections">
</div>
</div>
</div>
<div class="form-group col-sm-12" ng-show="connectors_type == 'FixedNumberPre'">
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"><b>Parameters :</b></div>
<label class="control-label col-sm-2" for="FixedNumberPre_n">n : </label>
<div class="col-sm-3">
<input id="FixedNumberPre_n" name="FixedNumberPre_n" type="number" step="0.1" placeholder="number" class="form-control input-md" ng-model="FixedNumberPre_n">
</div>
</div>
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"> </div>
<label class="control-label col-sm-2" for="FixedNumberPre_with_replacement">with replacement : </label>
<div class="col-sm-3">
<input id="FixedNumberPre_with_replacement" name="FixedNumberPre_with_replacement" type="checkbox" class="form-check-input" ng-model="FixedNumberPre_with_replacement">
</div>
</div>
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"> </div>
<label class="control-label col-sm-2" for="FixedNumberPre_allow_self_connections">allow self connections : </label>
<div class="col-sm-3">
<input id="FixedNumberPre_allow_self_connections" name="FixedNumberPre_allow_self_connections" type="checkbox" class="form-check-input" ng-model="FixedNumberPre_allow_self_connections">
</div>
</div>
</div>
<div class="form-group col-sm-12" ng-show="connectors_type == 'FixedNumberPost'">
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"><b>Parameters :</b></div>
<label class="control-label col-sm-2" for="FixedNumberPost_n">n : </label>
<div class="col-sm-3">
<input id="FixedNumberPost_n" name="FixedNumberPost_n" type="number" step="0.1" placeholder="number" class="form-control input-md" ng-model="FixedNumberPost_n">
</div>
</div>
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"> </div>
<label class="control-label col-sm-2" for="FixedNumberPost_with_replacement">with replacement : </label>
<div class="col-sm-3">
<input id="FixedNumberPost_with_replacement" name="FixedNumberPost_with_replacement" type="checkbox" class="form-check-input" ng-model="FixedNumberPost_with_replacement">
</div>
</div>
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"> </div>
<label class="control-label col-sm-2" for="FixedNumberPost_allow_self_connections">allow self connections : </label>
<div class="col-sm-3">
<input id="FixedNumberPost_allow_self_connections" name="FixedNumberPost_allow_self_connections" type="checkbox" class="form-check-input" ng-model="FixedNumberPost_allow_self_connections">
</div>
</div>
</div>
<div class="form-group col-sm-12" ng-show="connectors_type == 'FixedTotalNumber'">
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"><b>Parameters :</b></div>
<label class="control-label col-sm-2" for="FixedTotalNumber_n">n : </label>
<div class="col-sm-3">
<input id="FixedTotalNumber_n" name="FixedTotalNumber_n" type="number" step="0.1" placeholder="number" class="form-control input-md" ng-model="FixedTotalNumber_n">
</div>
</div>
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"> </div>
<label class="control-label col-sm-2" for="FixedTotalNumber_with_replacement">with replacement : </label>
<div class="col-sm-3">
<input id="FixedTotalNumber_with_replacement" name="FixedTotalNumber_with_replacement" type="checkbox" class="form-check-input" ng-model="FixedTotalNumber_with_replacement">
</div>
</div>
<div class="form-group col-sm-12">
<div class="control-label col-sm-2"> </div>
<label class="control-label col-sm-2" for="FixedTotalNumber_allow_self_connections">allow self connections : </label>
<div class="col-sm-3">
<input id="FixedTotalNumber_allow_self_connections" name="FixedTotalNumber_allow_self_connections" type="checkbox" class="form-check-input" ng-model="FixedTotalNumber_allow_self_connections">
</div>
</div>
</div>
</form>
<span style="color:red;">{{msgAlert}}</span>
</div>
<div class="modal-footer">
<button type="button" ng-click="beforeClose()" class="btn btn-primary">OK</button>
<button type="button" ng-click="cancel()" class="btn">Cancel</button>
</div>
</div>
</div>
</div>