░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/app/views/user_notes
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: index.html.erb
<% # Copyright (C) 2011 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see <http://www.gnu.org/licenses/>. %> <% add_crumb(@user.name, user_path(@user) ) add_crumb t('crumbs.faculty_journal', "Faculty Journal") js_bundle :user_notes css_bundle :user_notes %> <% provide :page_title do %><%= t :page_title, "Faculty Journal" %><% end %> <% if can_do(@user, @current_user, :create_user_notes) %> <% provide :right_side do %> <a id="new_user_note_button" class="new btn button-sidebar-wide icon-add" href="#"><%= t 'links.create_new_entry', "Create a New Entry" %></a> <% end %> <% end %> <h1 class="page-header"><%= t 'titles.journal_for', "Faculty Journal for %{user}", :user => @user.name %><span id="proccessing"> </span></h1> <div id="create_entry" style="display: none; margin-bottom: 10px;"> <%= form_for(@user_note, :url => user_user_notes_path, :html=>{:id=>'add_entry_form'}) do |f| %> <% if @user_note.errors.any? %> <div id="error_explanation"> <h2><%= t({ one: "1 error prohibited this note from being saved:", other: "%{count} errors prohibited this note from being saved:" }, count: @user_note.errors.count ) %></h2> <ul> <% @user_note.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <%= f.hidden_field :user_id, :value=>@user.id %> <table class="formtable" style="width: 100%;"> <tr> <td> <%= f.label :title, t("Title") %> <%= f.text_field :title, :class => "title", :style => "width: 98%;", :placeholder => t(:title, "Title") %> </td> </tr> <tr> <td colspan="2"> <%= f.label :note, t("Note") %> <%= f.text_area :note, :class => "note", :style => "width: 98%; height: 200px;" %> </td> </tr> <tr> <td colspan="2"> <div class="button-container clearfix pull-right"> <button type="button" class="cancel_button btn button-secondary"><%= t '#buttons.cancel', "Cancel" %></button> <button type="submit" class="btn btn-primary send_button"><%= t 'buttons.create', "Create Entry" %></button> </div> </td> </tr> </table> <% end %> </div> <div id="#no_user_notes_message" style="display: none;"><%= t 'messages.no_entries', "There are no journal entries for this student." %></div> <div id="user_note_list" class="user_note_list" role="list"> <%= render :partial => 'user_note', :collection => @user_notes %> <%= will_paginate(@user_notes, :style=>"margin-bottom: 1em;") %> <% pageless(@user_notes.total_pages, user_user_notes_path) %> <%= render :partial => 'user_note', :locals => {:user_note => @user_note}%> </div>
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 _user_note.html.erb
ERB
2.7 KB
2023-09-24 03:36
EDIT
📄 index.html.erb
ERB
3.3 KB
2023-09-24 03:36
EDIT
📄 show.html.erb
ERB
1.1 KB
2023-09-24 03:36
EDIT
📄 user_notes.html.erb
ERB
2.1 KB
2023-09-24 03:36
EDIT