-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathgitlog
1438 lines (1250 loc) · 54.8 KB
/
gitlog
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
commit b90260f1b3b4a24b9b6f1c211e3a967a895a4800
Author: Oren Blasberg <[email protected]>
Date: Sun May 22 22:23:40 2011 -0700
Job form
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index d96e0ff..49c06a9 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -1,84 +1,6 @@
<% content_for :title, "Post New Listing" %>
<h1>Post New Research Listing</h1>
-
-<p>
- After submitting your listing, the faculty sponsor you've selected will need to <br />
- confirm the listing before it is displayed on ResearchMatch.
-</p>
-<br />
-<% form_for(@job) do |f| %>
-
- <% if @job.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@job.errors.count, "error") %> prohibited this job from being saved:</h2>
-
- <ul>
- <% @job.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
- <% end %>
- </ul>
- </div>
- <br />
- <% end %>
-
- <table class="job_clear_table">
- <tr>
- <td class="job_clear_table_label"><%= f.label :title, 'Listing title' %><span class="required_field">*</span></td>
- <td class="job_clear_table_field"><%= f.text_field :title, :class => 'extrawide' %></td>
- </tr>
- <tr>
- <td class="job_clear_table_label"><%= f.label :department %><span class="required_field">*</span></td>
- <td class="job_clear_table_field"><%= f.select :department_id, Department.all.collect {|c| [c.name, c.id]} %></td>
- </tr>
- <tr>
- <td class="job_clear_table_label"><%= f.label :faculty_sponsor, 'Faculty sponsor' %><span class="required_field">*</span></td>
- <td class="job_clear_table_field"><%= select_tag :faculty_sponsor, options_from_collection_for_select(Faculty.all, :id, :name) %></td>
- </tr>
- <tr>
- <td class="job_clear_table_label"><%= f.label :desc, 'Listing description' %><span class="required_field">*</span></td>
- <td class="job_clear_table_field"><%= f.text_area :desc, {:rows=>12, :class => "extrawide" }%></td>
- </tr>
- <tr>
- <td class="job_clear_table_label"><%= f.label :category, 'Categories' %></td>
- <td class="job_clear_table_field"><%= text_field :category, :name, :class => 'extrawide',
- :placeholder => "(e.g. signal processing, computer vision)" %></td>
- </tr>
- <tr>
- <div class="ui-widget">
- <td class="job_clear_table_label"><%= f.label :course, 'Required courses' %></td>
- <td class="job_clear_table_field"><%= text_field :course, :name, :class => 'extrawide',
- :placeholder => "(e.g. CS61A, EE123)" %></td>
- </div>
- </tr>
- <tr>
- <td class="job_clear_table_label"><%= f.label :proglang, 'Desired programming language(s)' %></td>
- <td class="job_clear_table_field"><%= text_field :proglang, :name, :class => 'extrawide',
- :placeholder => "(e.g. Python, Java)" %></td>
- </tr>
- <tr>
- <td class="job_clear_table_label"><%= f.label :exp_date, 'Expiration time of this listing' %></td>
- <td class="job_clear_table_field"><%= f.datetime_select :exp_date %> Note: Time is UTC-8.</td>
- </tr>
- <tr>
- <td class="job_clear_table_label"><%= f.label :num_positions, 'Number of available positions' %> <br />
- (enter 0 to leave unspecified)</td>
- <td class="job_clear_table_field"><%= f.text_field :num_positions, {:value=> 0, :size=> 5} %></td>
- </tr>
- <tr>
- <td class="job_clear_table_label"><%= f.label :paid, 'Paid?' %></td>
- <td class="job_clear_table_field"><%= f.check_box :paid %></td>
- </tr>
- <tr>
- <td class="job_clear_table_label"><%= f.label :credit, 'Credit (units) offered?' %></td>
- <td class="job_clear_table_field"><%= f.check_box :credit %></td>
- </tr>
- <tr>
- <td class="job_clear_table_label"></td>
- <td class="job_clear_table_field"><br /><%= f.submit('Submit') %>
- <input type="button" value="Cancel" onclick="location.href='<%= jobs_path %>'" /></td>
- </tr>
- </table>
-<% end %>
+<%= render 'form' %>
<br />
-<%= link_to '« Back to Listings', jobs_path %>
+<%= link_to raw('« Back to listings'), jobs_path %>
commit d53c2106d8333c2574570dbf66cdae2d761b9c40
Author: Oren Blasberg <[email protected]>
Date: Sun May 22 21:21:16 2011 -0700
Fixed ThreeStateLabels and validation errors on new job form
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index afd0d4f..d96e0ff 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -8,9 +8,20 @@
</p>
<br />
<% form_for(@job) do |f| %>
- <%= f.error_messages %>
-
+ <% if @job.errors.any? %>
+ <div id="error_explanation">
+ <h2><%= pluralize(@job.errors.count, "error") %> prohibited this job from being saved:</h2>
+
+ <ul>
+ <% @job.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
+ </ul>
+ </div>
+ <br />
+ <% end %>
+
<table class="job_clear_table">
<tr>
<td class="job_clear_table_label"><%= f.label :title, 'Listing title' %><span class="required_field">*</span></td>
commit 95c5c8637447d408a14b01c8149c990866671c46
Author: Oren Blasberg <[email protected]>
Date: Tue Jan 18 07:09:16 2011 +0000
Fixed issue 65
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@446 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index fb45cbb..afd0d4f 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -13,19 +13,19 @@
<table class="job_clear_table">
<tr>
- <td class="job_clear_table_label"><%= f.label :title, 'Listing title' %></td>
+ <td class="job_clear_table_label"><%= f.label :title, 'Listing title' %><span class="required_field">*</span></td>
<td class="job_clear_table_field"><%= f.text_field :title, :class => 'extrawide' %></td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :department %></td>
+ <td class="job_clear_table_label"><%= f.label :department %><span class="required_field">*</span></td>
<td class="job_clear_table_field"><%= f.select :department_id, Department.all.collect {|c| [c.name, c.id]} %></td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :faculty_sponsor, 'Faculty sponsor' %></td>
+ <td class="job_clear_table_label"><%= f.label :faculty_sponsor, 'Faculty sponsor' %><span class="required_field">*</span></td>
<td class="job_clear_table_field"><%= select_tag :faculty_sponsor, options_from_collection_for_select(Faculty.all, :id, :name) %></td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :desc, 'Listing description' %></td>
+ <td class="job_clear_table_label"><%= f.label :desc, 'Listing description' %><span class="required_field">*</span></td>
<td class="job_clear_table_field"><%= f.text_area :desc, {:rows=>12, :class => "extrawide" }%></td>
</tr>
<tr>
commit ec341d8ded775b40505f4e9731604b571f9b3228
Author: Oren Blasberg <[email protected]>
Date: Sat Jan 15 19:49:19 2011 +0000
Placeholders on new job page. Removed unnecessary script from goapply. Edit Profile for faculties.
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@437 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 7d3c5b5..fb45cbb 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -2,6 +2,11 @@
<h1>Post New Research Listing</h1>
+<p>
+ After submitting your listing, the faculty sponsor you've selected will need to <br />
+ confirm the listing before it is displayed on ResearchMatch.
+</p>
+<br />
<% form_for(@job) do |f| %>
<%= f.error_messages %>
@@ -25,17 +30,20 @@
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :category, 'Categories' %></td>
- <td class="job_clear_table_field"><%= text_field :category, :name, :class => 'extrawide' %></td>
+ <td class="job_clear_table_field"><%= text_field :category, :name, :class => 'extrawide',
+ :placeholder => "(e.g. signal processing, computer vision)" %></td>
</tr>
<tr>
<div class="ui-widget">
<td class="job_clear_table_label"><%= f.label :course, 'Required courses' %></td>
- <td class="job_clear_table_field"><%= text_field :course, :name, :class => 'extrawide' %></td>
+ <td class="job_clear_table_field"><%= text_field :course, :name, :class => 'extrawide',
+ :placeholder => "(e.g. CS61A, EE123)" %></td>
</div>
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :proglang, 'Desired programming language(s)' %></td>
- <td class="job_clear_table_field"><%= text_field :proglang, :name, :class => 'extrawide' %></td>
+ <td class="job_clear_table_field"><%= text_field :proglang, :name, :class => 'extrawide',
+ :placeholder => "(e.g. Python, Java)" %></td>
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :exp_date, 'Expiration time of this listing' %></td>
commit 62ce75fa4a7c6de7f123de55c5a7f3c7dcafd1d5
Author: Oren Blasberg <[email protected]>
Date: Sat Jan 15 19:20:12 2011 +0000
Added fancy page titles, closing issue 59.
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@436 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 653e16e..7d3c5b5 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -1,4 +1,4 @@
-
+<% content_for :title, "Post New Listing" %>
<h1>Post New Research Listing</h1>
commit 4588ca72ab77113358c77b640a97cfb5ade3c517
Author: Oren Blasberg <[email protected]>
Date: Sat Jan 8 23:07:25 2011 +0000
Uniformity of appearance across job.edit and job.new views
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@412 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 8efe5b4..653e16e 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -8,8 +8,8 @@
<table class="job_clear_table">
<tr>
- <td class="job_clear_table_label"><%= f.label :title, 'Job title' %></td>
- <td class="job_clear_table_field"><%= f.text_field :title, :class => 'wide' %></td>
+ <td class="job_clear_table_label"><%= f.label :title, 'Listing title' %></td>
+ <td class="job_clear_table_field"><%= f.text_field :title, :class => 'extrawide' %></td>
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :department %></td>
@@ -20,29 +20,30 @@
<td class="job_clear_table_field"><%= select_tag :faculty_sponsor, options_from_collection_for_select(Faculty.all, :id, :name) %></td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :desc, 'Job description' %></td>
- <td class="job_clear_table_field"><%= f.text_area :desc, {:rows=>7}%></td>
+ <td class="job_clear_table_label"><%= f.label :desc, 'Listing description' %></td>
+ <td class="job_clear_table_field"><%= f.text_area :desc, {:rows=>12, :class => "extrawide" }%></td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :category, 'Category(ies)' %></td>
- <td class="job_clear_table_field"><%= text_field :category, :name, :class => 'wide' %></td>
+ <td class="job_clear_table_label"><%= f.label :category, 'Categories' %></td>
+ <td class="job_clear_table_field"><%= text_field :category, :name, :class => 'extrawide' %></td>
</tr>
<tr>
<div class="ui-widget">
<td class="job_clear_table_label"><%= f.label :course, 'Required courses' %></td>
- <td class="job_clear_table_field"><%= text_field :course, :name, :class => 'wide' %></td>
+ <td class="job_clear_table_field"><%= text_field :course, :name, :class => 'extrawide' %></td>
</div>
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :proglang, 'Desired programming language(s)' %></td>
- <td class="job_clear_table_field"><%= text_field :proglang, :name, :class => 'wide' %></td>
+ <td class="job_clear_table_field"><%= text_field :proglang, :name, :class => 'extrawide' %></td>
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :exp_date, 'Expiration time of this listing' %></td>
<td class="job_clear_table_field"><%= f.datetime_select :exp_date %> Note: Time is UTC-8.</td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :num_positions, 'Number of available positions' %> (0 for no limit)</td>
+ <td class="job_clear_table_label"><%= f.label :num_positions, 'Number of available positions' %> <br />
+ (enter 0 to leave unspecified)</td>
<td class="job_clear_table_field"><%= f.text_field :num_positions, {:value=> 0, :size=> 5} %></td>
</tr>
<tr>
@@ -50,7 +51,7 @@
<td class="job_clear_table_field"><%= f.check_box :paid %></td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :credit, 'Credit (Units) offered?' %></td>
+ <td class="job_clear_table_label"><%= f.label :credit, 'Credit (units) offered?' %></td>
<td class="job_clear_table_field"><%= f.check_box :credit %></td>
</tr>
<tr>
commit d3f43f631c6fbfb9a98237d815931e1e7b93ef9e
Author: Oren Blasberg <[email protected]>
Date: Sat Jan 8 02:10:18 2011 +0000
Fixed issue 30 and also misc very minor aesthetic tweaks
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@403 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 2113989..8efe5b4 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -55,7 +55,8 @@
</tr>
<tr>
<td class="job_clear_table_label"></td>
- <td class="job_clear_table_field"><br /><%= f.submit('Submit') %> <input type="button" value="Cancel" onclick="location.href='<%= jobs_path %>'" /></td>
+ <td class="job_clear_table_field"><br /><%= f.submit('Submit') %>
+ <input type="button" value="Cancel" onclick="location.href='<%= jobs_path %>'" /></td>
</tr>
</table>
<% end %>
commit 6000a54ee6d18144f32e349c603d5866115c5973
Author: Oren Blasberg <[email protected]>
Date: Fri Jan 7 06:00:07 2011 +0000
Fixed issue 46 , so there is now a frontend interface for deleting jobs. Also a couple other very minor bits and bobs
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@399 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 98a1b86..2113989 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -1,6 +1,6 @@
-<h1>Post a New Research Listing</h1>
+<h1>Post New Research Listing</h1>
<% form_for(@job) do |f| %>
<%= f.error_messages %>
commit d8faf59d2c01f9f9f78c1999b6ca898272f87de1
Author: Oren Blasberg <[email protected]>
Date: Wed Nov 10 05:27:50 2010 +0000
Fixed bad-path javascript bug in prod
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@370 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 03aff50..98a1b86 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -1,7 +1,5 @@
-<script language="JavaScript" src="/javascripts/autocomplete_setup.js"></script>
-
<h1>Post a New Research Listing</h1>
<% form_for(@job) do |f| %>
commit ea3ac1a292677a8025aee541691323323527ee5c
Author: Oren Blasberg <[email protected]>
Date: Wed Nov 10 05:19:19 2010 +0000
Gradient sharper. Also, 'Job' => 'Listing' in headers of pages.
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@369 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 927f360..03aff50 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -2,7 +2,7 @@
<script language="JavaScript" src="/javascripts/autocomplete_setup.js"></script>
-<h1>Post a New Job</h1>
+<h1>Post a New Research Listing</h1>
<% form_for(@job) do |f| %>
<%= f.error_messages %>
commit f05a21195e029d7aef66e10c2a8b5444de683fef
Author: Oren Blasberg <[email protected]>
Date: Mon Nov 8 02:22:05 2010 +0000
TABBED LAYOUTsvn rm public/researchsvn rm public/researchsvn rm public/researchsvn rm public/researchsvn rm public/research! (wip)
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@338 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index c78cac1..927f360 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -1,4 +1,4 @@
-<%= render :partial => "dashboard/menu_bar" %>
+
<script language="JavaScript" src="/javascripts/autocomplete_setup.js"></script>
commit a0cc493f42a8d6abdb089beef432d3222ef68bc4
Author: Oren Blasberg <[email protected]>
Date: Sun Nov 7 00:58:06 2010 +0000
Minor aesthetic fixes
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@326 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 9d5e75c..c78cac1 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -57,7 +57,7 @@
</tr>
<tr>
<td class="job_clear_table_label"></td>
- <td class="job_clear_table_field"><br /><%= f.submit('Submit') %></td>
+ <td class="job_clear_table_field"><br /><%= f.submit('Submit') %> <input type="button" value="Cancel" onclick="location.href='<%= jobs_path %>'" /></td>
</tr>
</table>
<% end %>
commit 32c5154d74ccc85b06b3821d32723cd8ba2a5b6f
Author: Oren Blasberg <[email protected]>
Date: Thu Nov 4 04:22:54 2010 +0000
Barebones application form now up; additional aesthetic changes.
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@316 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 208cef2..9d5e75c 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -2,7 +2,6 @@
<script language="JavaScript" src="/javascripts/autocomplete_setup.js"></script>
-<br />
<h1>Post a New Job</h1>
<% form_for(@job) do |f| %>
commit 90cfd878854d34663e6014319bca12e82866d1af
Author: Oren Blasberg <[email protected]>
Date: Wed Oct 20 01:35:29 2010 +0000
Misc aesthetic fixes + time zone fix.
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@294 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index db071ca..208cef2 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -15,6 +15,14 @@
<td class="job_clear_table_field"><%= f.text_field :title, :class => 'wide' %></td>
</tr>
<tr>
+ <td class="job_clear_table_label"><%= f.label :department %></td>
+ <td class="job_clear_table_field"><%= f.select :department_id, Department.all.collect {|c| [c.name, c.id]} %></td>
+ </tr>
+ <tr>
+ <td class="job_clear_table_label"><%= f.label :faculty_sponsor, 'Faculty sponsor' %></td>
+ <td class="job_clear_table_field"><%= select_tag :faculty_sponsor, options_from_collection_for_select(Faculty.all, :id, :name) %></td>
+ </tr>
+ <tr>
<td class="job_clear_table_label"><%= f.label :desc, 'Job description' %></td>
<td class="job_clear_table_field"><%= f.text_area :desc, {:rows=>7}%></td>
</tr>
@@ -34,7 +42,7 @@
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :exp_date, 'Expiration time of this listing' %></td>
- <td class="job_clear_table_field"><%= f.datetime_select :exp_date %> Note: Time is UTC.</td>
+ <td class="job_clear_table_field"><%= f.datetime_select :exp_date %> Note: Time is UTC-8.</td>
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :num_positions, 'Number of available positions' %> (0 for no limit)</td>
@@ -49,14 +57,6 @@
<td class="job_clear_table_field"><%= f.check_box :credit %></td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :department %></td>
- <td class="job_clear_table_field"><%= f.select :department_id, Department.all.collect {|c| [c.name, c.id]} %></td>
- </tr>
- <tr>
- <td class="job_clear_table_label"><%= f.label :faculty_sponsor, 'Faculty sponsor' %></td>
- <td class="job_clear_table_field"><%= select_tag :faculty_sponsor, options_from_collection_for_select(Faculty.all, :id, :name) %></td>
- </tr>
- <tr>
<td class="job_clear_table_label"></td>
<td class="job_clear_table_field"><br /><%= f.submit('Submit') %></td>
</tr>
commit b03d80cb15cedfb7dea5d362bf1a4b971f381931
Author: Oren Blasberg <[email protected]>
Date: Thu Oct 14 23:08:15 2010 +0000
updated appearance of jobs/edit
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@292 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index cba3112..db071ca 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -58,9 +58,9 @@
</tr>
<tr>
<td class="job_clear_table_label"></td>
- <td class="job_clear_table_field"><%= f.submit('Create') %></td>
+ <td class="job_clear_table_field"><br /><%= f.submit('Submit') %></td>
</tr>
</table>
<% end %>
<br />
-<%= link_to 'Back', jobs_path %>
+<%= link_to '« Back to Listings', jobs_path %>
commit 4a4177500ec64201efe642d467e8b1b4b0f8feb2
Author: Oren Blasberg <[email protected]>
Date: Tue Sep 14 02:02:42 2010 +0000
Autocomplete => commas at the end are now removed upon losing focus. GOOD STUFF
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@280 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 84aeb8b..cba3112 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -12,7 +12,7 @@
<table class="job_clear_table">
<tr>
<td class="job_clear_table_label"><%= f.label :title, 'Job title' %></td>
- <td class="job_clear_table_field"><%= f.text_field :title %></td>
+ <td class="job_clear_table_field"><%= f.text_field :title, :class => 'wide' %></td>
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :desc, 'Job description' %></td>
@@ -20,17 +20,17 @@
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :category, 'Category(ies)' %></td>
- <td class="job_clear_table_field"><%= text_field :category, :name %></td>
+ <td class="job_clear_table_field"><%= text_field :category, :name, :class => 'wide' %></td>
</tr>
<tr>
<div class="ui-widget">
<td class="job_clear_table_label"><%= f.label :course, 'Required courses' %></td>
- <td class="job_clear_table_field"><%= text_field :course, :name %></td>
+ <td class="job_clear_table_field"><%= text_field :course, :name, :class => 'wide' %></td>
</div>
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :proglang, 'Desired programming language(s)' %></td>
- <td class="job_clear_table_field"><%= text_field :proglang, :name %></td>
+ <td class="job_clear_table_field"><%= text_field :proglang, :name, :class => 'wide' %></td>
</tr>
<tr>
<td class="job_clear_table_label"><%= f.label :exp_date, 'Expiration time of this listing' %></td>
commit ac0e27df8465fbf45e99f90bb1fd81ba28fc7ce6
Author: Oren Blasberg <[email protected]>
Date: Tue Sep 14 01:50:48 2010 +0000
Moar frontend stuff.
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@279 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 4998a1b..84aeb8b 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -11,11 +11,11 @@
<table class="job_clear_table">
<tr>
- <td class="job_clear_table_label"><%= f.label :title, 'Job Title' %></td>
+ <td class="job_clear_table_label"><%= f.label :title, 'Job title' %></td>
<td class="job_clear_table_field"><%= f.text_field :title %></td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :desc, 'Job Description' %></td>
+ <td class="job_clear_table_label"><%= f.label :desc, 'Job description' %></td>
<td class="job_clear_table_field"><%= f.text_area :desc, {:rows=>7}%></td>
</tr>
<tr>
@@ -24,20 +24,20 @@
</tr>
<tr>
<div class="ui-widget">
- <td class="job_clear_table_label"><%= f.label :course, 'Required Courses' %></td>
+ <td class="job_clear_table_label"><%= f.label :course, 'Required courses' %></td>
<td class="job_clear_table_field"><%= text_field :course, :name %></td>
</div>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :proglang, 'Desired Programming Languages' %></td>
+ <td class="job_clear_table_label"><%= f.label :proglang, 'Desired programming language(s)' %></td>
<td class="job_clear_table_field"><%= text_field :proglang, :name %></td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :exp_date, 'Expiration Time of this Listing' %></td>
+ <td class="job_clear_table_label"><%= f.label :exp_date, 'Expiration time of this listing' %></td>
<td class="job_clear_table_field"><%= f.datetime_select :exp_date %> Note: Time is UTC.</td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :num_positions, 'Number of Available Positions' %> (0 for no limit)</td>
+ <td class="job_clear_table_label"><%= f.label :num_positions, 'Number of available positions' %> (0 for no limit)</td>
<td class="job_clear_table_field"><%= f.text_field :num_positions, {:value=> 0, :size=> 5} %></td>
</tr>
<tr>
@@ -45,7 +45,7 @@
<td class="job_clear_table_field"><%= f.check_box :paid %></td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :credit %></td>
+ <td class="job_clear_table_label"><%= f.label :credit, 'Credit (Units) offered?' %></td>
<td class="job_clear_table_field"><%= f.check_box :credit %></td>
</tr>
<tr>
@@ -53,7 +53,7 @@
<td class="job_clear_table_field"><%= f.select :department_id, Department.all.collect {|c| [c.name, c.id]} %></td>
</tr>
<tr>
- <td class="job_clear_table_label"><%= f.label :faculty_sponsor, 'Faculty Sponsor' %></td>
+ <td class="job_clear_table_label"><%= f.label :faculty_sponsor, 'Faculty sponsor' %></td>
<td class="job_clear_table_field"><%= select_tag :faculty_sponsor, options_from_collection_for_select(Faculty.all, :id, :name) %></td>
</tr>
<tr>
commit ca900ed7047cecd822ef57db5662b7121a4d376a
Author: Oren Blasberg <[email protected]>
Date: Sat Sep 11 22:26:36 2010 +0000
Dumped prototype/scriptaculous in favor of jQuery / jQueryUI. Also made a few UI refinements.
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@272 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index d01ac98..4998a1b 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -1,5 +1,8 @@
<%= render :partial => "dashboard/menu_bar" %>
+<script language="JavaScript" src="/javascripts/autocomplete_setup.js"></script>
+
+<br />
<h1>Post a New Job</h1>
<% form_for(@job) do |f| %>
@@ -8,54 +11,56 @@
<table class="job_clear_table">
<tr>
- <td id="job_clear_table_label"><%= f.label :title, 'Job Title' %></td>
- <td id="job_clear_table_field"><%= f.text_field :title %></td>
+ <td class="job_clear_table_label"><%= f.label :title, 'Job Title' %></td>
+ <td class="job_clear_table_field"><%= f.text_field :title %></td>
</tr>
<tr>
- <td id="job_clear_table_label"><%= f.label :desc, 'Job Description' %></td>
- <td id="job_clear_table_field"><%= f.text_area :desc, {:rows=>7}%></td>
+ <td class="job_clear_table_label"><%= f.label :desc, 'Job Description' %></td>
+ <td class="job_clear_table_field"><%= f.text_area :desc, {:rows=>7}%></td>
</tr>
<tr>
- <td id="job_clear_table_label"><%= f.label :category, 'Category(ies)' %></td>
- <td id="job_clear_table_field"><%= text_field_with_auto_complete :category, :name, :autocomplete => "off" %></td>
+ <td class="job_clear_table_label"><%= f.label :category, 'Category(ies)' %></td>
+ <td class="job_clear_table_field"><%= text_field :category, :name %></td>
</tr>
<tr>
- <td id="job_clear_table_label"><%= f.label :course, 'Required Courses' %></td>
- <td id="job_clear_table_field"><%= text_field_with_auto_complete :course, :name, :autocomplete => "off" %></td>
+ <div class="ui-widget">
+ <td class="job_clear_table_label"><%= f.label :course, 'Required Courses' %></td>
+ <td class="job_clear_table_field"><%= text_field :course, :name %></td>
+ </div>
</tr>
<tr>
- <td id="job_clear_table_label"><%= f.label :proglang, 'Desired Programming Languages' %></td>
- <td id="job_clear_table_field"><%= text_field_with_auto_complete :proglang, :name, :autocomplete => "off" %></td>
+ <td class="job_clear_table_label"><%= f.label :proglang, 'Desired Programming Languages' %></td>
+ <td class="job_clear_table_field"><%= text_field :proglang, :name %></td>
</tr>
<tr>
- <td id="job_clear_table_label"><%= f.label :exp_date, 'Expiration Time of this Listing' %></td>
- <td id="job_clear_table_field"><%= f.datetime_select :exp_date %> Note: Time is UTC.</td>
+ <td class="job_clear_table_label"><%= f.label :exp_date, 'Expiration Time of this Listing' %></td>
+ <td class="job_clear_table_field"><%= f.datetime_select :exp_date %> Note: Time is UTC.</td>
</tr>
<tr>
- <td id="job_clear_table_label"><%= f.label :num_positions, 'Number of Available Positions' %> (0 for no limit)</td>
- <td id="job_clear_table_field"><%= f.text_field :num_positions, {:value=> 0, :size=> 5} %></td>
+ <td class="job_clear_table_label"><%= f.label :num_positions, 'Number of Available Positions' %> (0 for no limit)</td>
+ <td class="job_clear_table_field"><%= f.text_field :num_positions, {:value=> 0, :size=> 5} %></td>
</tr>
<tr>
- <td id="job_clear_table_label"><%= f.label :paid, 'Paid?' %></td>
- <td id="job_clear_table_field"><%= f.check_box :paid %></td>
+ <td class="job_clear_table_label"><%= f.label :paid, 'Paid?' %></td>
+ <td class="job_clear_table_field"><%= f.check_box :paid %></td>
</tr>
<tr>
- <td id="job_clear_table_label"><%= f.label :credit %></td>
- <td id="job_clear_table_field"><%= f.check_box :credit %></td>
+ <td class="job_clear_table_label"><%= f.label :credit %></td>
+ <td class="job_clear_table_field"><%= f.check_box :credit %></td>
</tr>
<tr>
- <td id="job_clear_table_label"><%= f.label :department %></td>
- <td id="job_clear_table_field"><%= f.select :department_id, Department.all.collect {|c| [c.name, c.id]} %></td>
+ <td class="job_clear_table_label"><%= f.label :department %></td>
+ <td class="job_clear_table_field"><%= f.select :department_id, Department.all.collect {|c| [c.name, c.id]} %></td>
</tr>
<tr>
- <td id="job_clear_table_label"><%= f.label :faculty_sponsor, 'Faculty Sponsor' %></td>
- <td id="job_clear_table_field"><%= select_tag :faculty_sponsor, options_from_collection_for_select(Faculty.all, :id, :name) %></td>
+ <td class="job_clear_table_label"><%= f.label :faculty_sponsor, 'Faculty Sponsor' %></td>
+ <td class="job_clear_table_field"><%= select_tag :faculty_sponsor, options_from_collection_for_select(Faculty.all, :id, :name) %></td>
</tr>
<tr>
- <td id="job_clear_table_label"></td>
- <td id="job_clear_table_field"><%= f.submit('Create') %></td>
+ <td class="job_clear_table_label"></td>
+ <td class="job_clear_table_field"><%= f.submit('Create') %></td>
</tr>
</table>
<% end %>
<br />
-<%= link_to 'Back', jobs_path %>
\ No newline at end of file
+<%= link_to 'Back', jobs_path %>
commit 81d76767c12fdb81f279b87445d0d1336c82b238
Author: Amber Feng <[email protected]>
Date: Tue Aug 24 22:06:47 2010 +0000
Cleaned up job_controller stuff, FACULTY_MAILER needs to be fixed
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@265 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index c0c2505..d01ac98 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -49,7 +49,7 @@
</tr>
<tr>
<td id="job_clear_table_label"><%= f.label :faculty_sponsor, 'Faculty Sponsor' %></td>
- <td id="job_clear_table_field"><%= select_tag :faculty_name, options_from_collection_for_select([Faculty.new(:name => "(Please choose a sponsor)", :id => "0")].concat(Faculty.all), :id, :name) %></td>
+ <td id="job_clear_table_field"><%= select_tag :faculty_sponsor, options_from_collection_for_select(Faculty.all, :id, :name) %></td>
</tr>
<tr>
<td id="job_clear_table_label"></td>
commit b995bc4c15dab6d8ea62d5771ad0595cc6e7d545
Author: Oren Blasberg <[email protected]>
Date: Wed Dec 2 08:59:23 2009 +0000
Added/modified a few cucumber tests, removed space btwn method call and arguments in jobs/new view.
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@214 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 5204cee..c0c2505 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -53,7 +53,7 @@
</tr>
<tr>
<td id="job_clear_table_label"></td>
- <td id="job_clear_table_field"><%= f.submit ('Create') %></td>
+ <td id="job_clear_table_field"><%= f.submit('Create') %></td>
</tr>
</table>
<% end %>
commit 673c711d184863d08f0aa13ef65c133e23e7debc
Author: Allen Chen <>
Date: Tue Dec 1 10:11:28 2009 +0000
Same as before... missed a field name.
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@190 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index cc47560..5204cee 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -28,7 +28,7 @@
<td id="job_clear_table_field"><%= text_field_with_auto_complete :proglang, :name, :autocomplete => "off" %></td>
</tr>
<tr>
- <td id="job_clear_table_label"><%= f.label :exp_date %></td>
+ <td id="job_clear_table_label"><%= f.label :exp_date, 'Expiration Time of this Listing' %></td>
<td id="job_clear_table_field"><%= f.datetime_select :exp_date %> Note: Time is UTC.</td>
</tr>
<tr>
commit 85fccb028285fa04bf6ea987d7c58e467cd0e6a6
Author: Allen Chen <>
Date: Tue Dec 1 10:10:47 2009 +0000
Updated look of "new job" view - more understandable and less scaffolded-ish look.
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@189 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 350c4af..cc47560 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -1,57 +1,61 @@
<%= render :partial => "dashboard/menu_bar" %>
-<h1>New job</h1>
+<h1>Post a New Job</h1>
<% form_for(@job) do |f| %>
<%= f.error_messages %>
- <p>
- <%= f.label :title %><br />
- <%= f.text_field :title %>
- </p>
- <p>
- <%= f.label :desc %><br />
- <%= f.text_area :desc, {:rows=>5}%>
- </p>
- <p>
- Category(ies)<br />
- <%= text_field_with_auto_complete :category, :name, :autocomplete => "off" %>
- </p>
- <p>
- <%= f.label :required_courses %><br />
- <%= text_field_with_auto_complete :course, :name, :autocomplete => "off" %>
- </p>
- <p>
- Desired programming languages:<br />
- <%= text_field_with_auto_complete :proglang, :name, :autocomplete => "off" %>
- </p>
- <p>
- <%= f.label :exp_date %><br />
- <%= f.datetime_select :exp_date %> Note: Time is UTC.
- </p>
- <p>
- <%= f.label :num_positions %> (0 for no limit)<br />
- <%= f.text_field :num_positions, {:value=> 0} %>
- </p>
- <p>
- <%= f.label :paid %><br />
- <%= f.check_box :paid %>
- </p>
- <p>
- <%= f.label :credit %><br />
- <%= f.check_box :credit %>
- </p>
- <p>
- <%= f.label :department %>
- <%= f.select :department_id, Department.all.collect {|c| [c.name, c.id]} %>
- </p>
- <p>
- <%= f.label :faculty_sponsor %>
- <%= select_tag :faculty_name, options_from_collection_for_select([Faculty.new(:name => "(Please choose a sponsor)", :id => "0")].concat(Faculty.all), :id, :name) %>
- </p>
- <p>
- <%= f.submit ('Create') %>
- </p>
+
+ <table class="job_clear_table">
+ <tr>
+ <td id="job_clear_table_label"><%= f.label :title, 'Job Title' %></td>
+ <td id="job_clear_table_field"><%= f.text_field :title %></td>
+ </tr>
+ <tr>
+ <td id="job_clear_table_label"><%= f.label :desc, 'Job Description' %></td>
+ <td id="job_clear_table_field"><%= f.text_area :desc, {:rows=>7}%></td>
+ </tr>
+ <tr>
+ <td id="job_clear_table_label"><%= f.label :category, 'Category(ies)' %></td>
+ <td id="job_clear_table_field"><%= text_field_with_auto_complete :category, :name, :autocomplete => "off" %></td>
+ </tr>
+ <tr>
+ <td id="job_clear_table_label"><%= f.label :course, 'Required Courses' %></td>
+ <td id="job_clear_table_field"><%= text_field_with_auto_complete :course, :name, :autocomplete => "off" %></td>
+ </tr>
+ <tr>
+ <td id="job_clear_table_label"><%= f.label :proglang, 'Desired Programming Languages' %></td>
+ <td id="job_clear_table_field"><%= text_field_with_auto_complete :proglang, :name, :autocomplete => "off" %></td>
+ </tr>
+ <tr>
+ <td id="job_clear_table_label"><%= f.label :exp_date %></td>
+ <td id="job_clear_table_field"><%= f.datetime_select :exp_date %> Note: Time is UTC.</td>
+ </tr>
+ <tr>
+ <td id="job_clear_table_label"><%= f.label :num_positions, 'Number of Available Positions' %> (0 for no limit)</td>
+ <td id="job_clear_table_field"><%= f.text_field :num_positions, {:value=> 0, :size=> 5} %></td>
+ </tr>
+ <tr>
+ <td id="job_clear_table_label"><%= f.label :paid, 'Paid?' %></td>
+ <td id="job_clear_table_field"><%= f.check_box :paid %></td>
+ </tr>
+ <tr>
+ <td id="job_clear_table_label"><%= f.label :credit %></td>
+ <td id="job_clear_table_field"><%= f.check_box :credit %></td>
+ </tr>
+ <tr>
+ <td id="job_clear_table_label"><%= f.label :department %></td>
+ <td id="job_clear_table_field"><%= f.select :department_id, Department.all.collect {|c| [c.name, c.id]} %></td>
+ </tr>
+ <tr>
+ <td id="job_clear_table_label"><%= f.label :faculty_sponsor, 'Faculty Sponsor' %></td>
+ <td id="job_clear_table_field"><%= select_tag :faculty_name, options_from_collection_for_select([Faculty.new(:name => "(Please choose a sponsor)", :id => "0")].concat(Faculty.all), :id, :name) %></td>
+ </tr>
+ <tr>
+ <td id="job_clear_table_label"></td>
+ <td id="job_clear_table_field"><%= f.submit ('Create') %></td>
+ </tr>
+ </table>
<% end %>
<br />
<%= link_to 'Back', jobs_path %>
\ No newline at end of file
commit a8ffdc772803f169a23a01a7a5bb6291f66ceb46
Author: Oren Blasberg <[email protected]>
Date: Mon Nov 30 08:46:43 2009 +0000
[NEW DB MIGRATION] Added Proglangreq model which represents the many-to-many relationship between jobs and proglangs. Also made the names of proglangs tags for jobs. Still to do: ensure these are searchable through solr.
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@170 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index ac791d4..350c4af 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -20,7 +20,11 @@
<p>
<%= f.label :required_courses %><br />
<%= text_field_with_auto_complete :course, :name, :autocomplete => "off" %>
- </p>
+ </p>
+ <p>
+ Desired programming languages:<br />
+ <%= text_field_with_auto_complete :proglang, :name, :autocomplete => "off" %>
+ </p>
<p>
<%= f.label :exp_date %><br />
<%= f.datetime_select :exp_date %> Note: Time is UTC.
commit eb58a9dc3a8631b692a36f8a52dc7f2faad11f28
Author: Oren Blasberg <[email protected]>
Date: Sun Nov 29 08:55:07 2009 +0000
Re-added the "Choose a faculty sponsor" choice to the jobs new view
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@139 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index 50dbac8..ac791d4 100644
--- a/app/views/jobs/new.html.erb
+++ b/app/views/jobs/new.html.erb
@@ -43,7 +43,7 @@
</p>
<p>
<%= f.label :faculty_sponsor %>
- <%= select_tag :faculty_name, options_from_collection_for_select(Faculty.all, :id, :name) %>
+ <%= select_tag :faculty_name, options_from_collection_for_select([Faculty.new(:name => "(Please choose a sponsor)", :id => "0")].concat(Faculty.all), :id, :name) %>
</p>
<p>
<%= f.submit ('Create') %>
commit b849f974cc71aef9f6cac99ce8ee1c0603162da2
Author: Oren Blasberg <[email protected]>
Date: Sun Nov 29 08:31:27 2009 +0000
Fixed required courses in jobs. [Bug remains: when you try to create a new job and fail validations, some data is lost, including categories, required courses, and num positions]
git-svn-id: https://research-cs194.googlecode.com/svn/trunk/research@136 3207efe2-bddd-11de-9616-7b1d4728551e
diff --git a/app/views/jobs/new.html.erb b/app/views/jobs/new.html.erb
index d4d831c..50dbac8 100644