Description:
wip
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r873:a7f456a02c5b - - 5 files changed: 26 inserted, 9 deleted
@@ -32,13 +32,13 | |||
|
32 | 32 | cursor: inherit; |
|
33 | 33 | display: block; |
|
34 | 34 | } |
|
35 | 35 | |
|
36 | 36 | body { |
|
37 | 37 | //font-size: 13px |
|
38 |
- font-family: ' |
|
|
38 | + font-family: 'Noto Sans Thai', Tahoma, "sans-serif"; | |
|
39 | 39 | margin: 10px; |
|
40 | 40 | padding: 10px; |
|
41 | 41 | padding-top: 60px; |
|
42 | 42 | } |
|
43 | 43 | |
|
44 | 44 | // ------------------ bootstrap sortable -------------------- |
@@ -13,13 +13,19 | |||
|
13 | 13 | -# %link{href:"https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css",rel:"stylesheet",integrity:"sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT",crossorigin:"anonymous"} |
|
14 | 14 | -# %script{src:"https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js",integrity:"sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3",crossorigin:"anonymous"} |
|
15 | 15 | -# %script{src:"https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js",integrity:"sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz",crossorigin:"anonymous"} |
|
16 | 16 | |
|
17 | 17 | <link rel="preconnect" href="https://fonts.googleapis.com"> |
|
18 | 18 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
|
19 | - <link href="https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital@0;1&family=Krub:ital,wght@0,200;0,400;0,600;1,200;1,400;1,600&family=Sarabun:ital,wght@0,200;0,400;0,600;1,200;1,400;1,600&display=swap" rel="stylesheet"> | |
|
19 | + -# | |
|
20 | + <link href="https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,400;0,600;1,200;1,400;1,600&family=Krub:ital,wght@0,200;0,400;0,600;1,200;1,400;1,600&family=Sarabun:ital,wght@0,200;0,400;0,600;1,200;1,400;1,600&display=swap" rel="stylesheet"> | |
|
21 | + <link href="https://fonts.googleapis.com/css2?family=Mitr:ital,wght@0,300;1,300&family=Kodchasan:ital,wght@0,200;0,400;0,600;1,200;1,400;1,600&family=Noto+Serif+Thai:ital,wght@0,200;0,400;0,600;1,200;1,400;1,600&family=Noto+Sans+Thai:ital,wght@0,200;0,400;0,600;1,200;1,400;1,600&display=swap" rel="stylesheet"> | |
|
22 | + <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+Thai:ital,wght@0,200;0,400;0,600;1,200;1,400;1,600&family=Noto+Sans+Thai:ital,wght@0,200;0,400;0,600;1,200;1,400;1,600&display=swap" rel="stylesheet"> | |
|
23 | + <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+Thai:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap" rel="stylesheet"> | |
|
24 | + <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap" rel="stylesheet"> | |
|
25 | + <link href="https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap" rel="stylesheet"> | |
|
20 | 26 | |
|
21 | 27 | %body |
|
22 | 28 | - unless local_assigns[:skip_header] |
|
23 | 29 | = render 'layouts/header' |
|
24 | 30 | |
|
25 | 31 | /= content_tag(:p,flash[:notice],class: 'alert alert-success') if flash[:notice]!=nil |
@@ -1,12 +1,13 | |||
|
1 | 1 | %h1= GraderConfiguration['ui.front.title'] |
|
2 | 2 | |
|
3 | 3 | .row |
|
4 | 4 | .col-md-6 |
|
5 | - - if @announcements.length!=0 | |
|
6 | - .announcementbox{:style => 'margin-top: 0px'} | |
|
7 | - %span{:class => 'title'} | |
|
8 | - Announcements | |
|
5 | + .card | |
|
6 | + .card-header | |
|
7 | + Announcement | |
|
8 | + = link_to 'Manage', announcements_path, class: 'btn btn-secondary btn-sm' | |
|
9 | + %ul.list-group.list-group-flush | |
|
9 | 10 | = render :partial => 'announcement', :collection => @announcements |
|
10 | 11 | .col-md-4{style: "padding-left: 20px;"} |
|
11 | 12 | = render :partial => 'login_box' |
|
12 | 13 | = "current ip is #{@remote_ip}" |
@@ -5,13 +5,23 | |||
|
5 | 5 | |
|
6 | 6 | %p= link_to '[Back to problem list]', problems_path |
|
7 | 7 | |
|
8 | 8 | - if @problem and @problem.errors |
|
9 | 9 | =error_messages_for 'problem' |
|
10 | 10 | |
|
11 |
- = form_ |
|
|
11 | + = form_with url: do_import_problems_path, :multipart => true do |f| | |
|
12 | + .row.mb-2 | |
|
13 | + .col-md-1 | |
|
14 | + = f.label :name, 'Name' | |
|
15 | + .col-md-11 | |
|
16 | + = f.text_field :name, class: 'form-control' | |
|
17 | + .row.mb-2 | |
|
18 | + .col-md-1 | |
|
19 | + = f.label :full_name, 'Full Name' | |
|
20 | + .col-md-11 | |
|
21 | + = f.text_field :full_name, class: 'form-control' | |
|
12 | 22 | |
|
13 | 23 | .submitbox |
|
14 | 24 | %table |
|
15 | 25 | %tr |
|
16 | 26 | %td Name: |
|
17 | 27 | %td= text_field_tag 'name' |
@@ -2,14 +2,14 | |||
|
2 | 2 | = stylesheet_link_tag 'problems' |
|
3 | 3 | %h1 Problems |
|
4 | 4 | %p |
|
5 | 5 | = link_to 'Import problems', {:action => 'import'}, class: 'btn btn-success btn-sm' |
|
6 | 6 | = link_to 'New problem', new_problem_path, class: 'btn btn-success btn-sm' |
|
7 | 7 | = link_to 'Bulk Manage', { action: 'manage'}, class: 'btn btn-info btn-sm' |
|
8 |
- = link_to 'Turn off all problems', {:action => 'turn_all_off'}, class: 'btn btn- |
|
|
9 |
- = link_to 'Turn on all problems', {:action => 'turn_all_on'}, class: 'btn btn- |
|
|
8 | + = link_to 'Turn off all problems', {:action => 'turn_all_off'}, class: 'btn btn-secondary btn-sm' | |
|
9 | + = link_to 'Turn on all problems', {:action => 'turn_all_on'}, class: 'btn btn-secondary btn-sm' | |
|
10 | 10 | .submitbox |
|
11 | 11 | = form_tag action: 'quick_create', controller: 'problems' do |
|
12 | 12 | %b Quick New: |
|
13 | 13 | %label{:for => "problem_name"} Name |
|
14 | 14 | = text_field 'problem', 'name' |
|
15 | 15 | | |
You need to be logged in to leave comments.
Login now