���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home3/cpr76684/public_html/proposals.tar
���ѧ٧ѧ�
preset.xml 0000644 00000001437 15152360014 0006572 0 ustar 00 <preset> <settings> <intro></intro> <comments>0</comments> <requiredentries>0</requiredentries> <requiredentriestoview>0</requiredentriestoview> <maxentries>0</maxentries> <rssarticles>0</rssarticles> <approval>0</approval> <manageapproved>1</manageapproved> <defaultsortdir>0</defaultsortdir> <defaultsort>0</defaultsort> </settings> <field> <type>text</type> <name>Title</name> <required>0</required> </field> <field> <type>menu</type> <name>Status</name> <required>0</required> <param1>Approved In review Rejected Pending</param1> </field> <field> <type>text</type> <name>Summary</name> <required>0</required> </field> <field> <type>textarea</type> <name>Content</name> <required>0</required> <param2>60</param2> <param3>10</param3> <param4>1</param4> <param5>0</param5> </field> </preset> tests/behat/proposals_preset.feature 0000644 00000011264 15152360014 0013753 0 ustar 00 @mod @mod_data @datapreset @datapreset_proposals Feature: Users can use the Proposals preset In order to create a Proposals database As a user I need to apply and use the Proposals preset Background: Given the following "users" exist: | username | firstname | lastname | email | | student1 | Alice | Student | student1@example.com | | teacher1 | Pau | Teacher | teacher1@example.com | And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | And the following "activities" exist: | activity | name | intro | course | idnumber | | data | Student projects | Database intro | C1 | data1 | And I am on the "Student projects" "data activity" page logged in as teacher1 And I follow "Presets" And I click on "fullname" "radio" in the "Proposals" "table_row" And I click on "Use this preset" "button" And the following "mod_data > entries" exist: | database | user | Title | Summary | Content | Status | | data1 | student1 | Project created by student | Summary 1 | Content for entry 1 | Pending | | data1 | teacher1 | Project created by teacher | Summary 2 | And content for entry 2 | Rejected | @javascript Scenario: Proposals. Users view entries When I am on the "Student projects" "data activity" page logged in as student1 Then I should see "Project created by student" And "Summary 1" "text" should exist And "Actions" "icon" should exist in the "#proposals-list" "css_element" And I should see "Project created by teacher" And "Summary 2" "text" should exist And I click on "Project created by student" "link" And I click on "Project created by teacher" "link" And I should see "Summary 1" And I should not see "Content for entry 1" And I should see "Summary 2" And I should not see "And content for entry 2" # Single view. And I select "Single view" from the "jump" singleselect And I should see "Project created by student" And I should see "Summary 1" And I should see "Content for entry 1" And I should see "Pending" And "Actions" "icon" should exist in the ".proposals-single" "css_element" And I should not see "Project created by teacher" And I should not see "Summary 2" And I should not see "And content for entry 2" And I should not see "Rejected" And I follow "Next" And I should see "Project created by teacher" And I should see "Summary 2" And I should see "And content for entry 2" And I should see "Rejected" # This student can't edit or delete this entry, so the Actions menu shouldn't be displayed. And "Actions" "icon" should not exist in the ".proposals-single" "css_element" And I should not see "Project created by student" And I should not see "Summary 1" And I should not see "Content for entry 1" And I should not see "Pending" @javascript Scenario: Proposals. Users can search entries Given I am on the "Student projects" "data activity" page logged in as student1 And "Project created by student" "text" should appear before "Project created by teacher" "text" When I click on "Advanced search" "checkbox" And I should see "First name" And I should see "Last name" And I set the field "Title" to "student" And I click on "Save settings" "button" in the "data_adv_form" "region" Then I should see "Project created by student" And I should not see "Project created by teacher" But I set the field "Title" to "Project" And I set the field "Order" to "Descending" And I click on "Save settings" "button" in the "data_adv_form" "region" And "Project created by teacher" "text" should appear before "Project created by student" "text" @javascript Scenario: Proposals. Users can add entries Given I am on the "Student projects" "data activity" page logged in as student1 When I press "Add entry" And I set the field "Title" to "This is the title" And I set the field "Summary" to "This is the summary for the new entry." And I set the field "Content" to "This is the content for the new entry." And I set the field "Status" to "Approved" And I press "Save" Then I should see "This is the title" And I should see "Approved" And I should see "This is the summary for the new entry." And I should see "This is the content for the new entry." listtemplate.html 0000644 00000002225 15152360014 0010137 0 ustar 00 <div class="card"> <div class="card-header" role="tab" id="entry-##id##"> <div> <div class="row align-middle"> <div class="col-4 col-sm-8 my-auto"> <a data-toggle="collapse" data-parent="#proposals-list" href="#collapseentry-##id##" aria-expanded="true" aria-controls="collapseentry-##id##" class="d-block"> <i class="fa fa-chevron-down"></i> [[Title]] </a> </div> <div class="col-4 col-sm-2 ml-auto my-auto">##userpicture## ##user##</div> <div class="col-4 col-sm-2 ml-auto align-self-center d-flex flex-row-reverse"> <div>##actionsmenu##</div> <div class="ml-auto my-auto ##approvalstatusclass##">##approvalstatus##</div> </div> </div> </div> </div> <div id="collapseentry-##id##" class="collapse" role="tabpanel" aria-labelledby="entry-##id##"> <div class="card-body"> [[Summary]] <p class="mt-3 preview-disabled"><a href="##moreurl##">View the full proposal</a></p> </div> </div> </div> addtemplate.html 0000644 00000000742 15152360014 0007716 0 ustar 00 <div class="proposals-addentry"> <div class="form-group"> <div class="font-weight-bold">Title</div> [[Title]] </div> <div class="form-group"> <div class="font-weight-bold">Status</div> [[Status]] </div> <div class="form-group"> <div class="font-weight-bold">Summary</div> [[Summary]] </div> <div class="form-group"> <div class="font-weight-bold">Content</div> [[Content]] </div> </div> rsstemplate.html 0000644 00000002641 15152360014 0007775 0 ustar 00 <div class="proposals-rss my-5"> <div class="row my-4"> <div class="col-auto">##userpicture##</div> <div class="col"> <div class="row h-100"> <div class="col-3 align-self-center"> ##user##<br/><span class="data-timeinfo">##timeadded##</span> </div> <div class="col-4 col-md-6 text-right align-self-center data-timeinfo"> <span class="font-weight-bold ">Last edited:</span> ##timemodified## </div> <div class="col-4 col-md-3 ml-auto align-self-center d-flex flex-row-reverse"> <div class="ml-auto my-auto ##approvalstatusclass##">##approvalstatus##</div> </div> </div> </div> </div> <hr/> <h2 class="card-title mt-4">[[Title]]</h2> <div class="proposals-single-body"> <div class="row my-3"> <div class="col-3 col-md-1"><strong>Status</strong></div> <div class="col">[[Status]]</div> </div> <div class="row singleentry-summary"> <div class="col"> <h3 class="my-5">Summary</h3> [[Summary]] </div> </div> <div class="row singleentry-content"> <div class="col"> <h3 class="my-5">Content</h3> [[Content]] </div> </div> </div> </div> listtemplateheader.html 0000644 00000000134 15152360014 0011305 0 ustar 00 <div id="proposals-list" class="accordion mb-4" role="tablist" aria-multiselectable="true"> listtemplatefooter.html 0000644 00000000007 15152360014 0011352 0 ustar 00 </div> jstemplate.js 0000644 00000000000 15152360014 0007235 0 ustar 00 rsstitletemplate.html 0000644 00000000012 15152360014 0011025 0 ustar 00 [[Title]] csstemplate.css 0000644 00000000503 15152360014 0007575 0 ustar 00 /****** List View CSS ******/ #proposals-list .card-header a.d-block { color: black; font-weight: bold; } #proposals-list .card { overflow: visible; } /***** Add entry CSS *****/ .proposals-addentry .form-group label, .proposals-asearch .form-group label { font-weight: bold; padding-top: 20px; } singletemplate.html 0000644 00000002746 15152360014 0010455 0 ustar 00 <div class="proposals-single my-5"> <div class="row my-4"> <div class="col-auto">##userpicture##</div> <div class="col"> <div class="row h-100"> <div class="col-3 align-self-center"> ##user##<br/><span class="data-timeinfo">##timeadded##</span> </div> <div class="col-4 col-md-6 text-right align-self-center data-timeinfo"> <span class="font-weight-bold ">Last edited:</span> ##timemodified## </div> <div class="col-4 col-md-3 ml-auto align-self-center d-flex flex-row-reverse"> <div>##actionsmenu##</div> <div class="ml-auto my-auto ##approvalstatusclass##">##approvalstatus##</div> </div> </div> </div> </div> <hr/> <h2 class="card-title mt-4">[[Title]]</h2> <div class="proposals-single-body"> <div class="row singleentry-status"> <div class="col"> <h3 class="my-5">Status</h3> [[Status]] </div> </div> <div class="row singleentry-summary"> <div class="col"> <h3 class="my-5">Summary</h3> [[Summary]] </div> </div> <div class="row singleentry-content"> <div class="col"> <h3 class="my-5">Content</h3> [[Content]] </div> </div> </div> </div> version.php 0000644 00000002263 15152360014 0006742 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle 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 General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Data Proposals preset version information. * * @package datapreset_proposals * @copyright 2022 Sara Arjona <sara@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2022112800; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2022111800; // Requires this Moodle version. $plugin->component = 'datapreset_proposals'; // Full name of the plugin (used for diagnostics). classes/privacy/provider.php 0000644 00000002424 15152360014 0012220 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle 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 General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. namespace datapreset_proposals\privacy; /** * Privacy provider implementation for datapreset_proposals. * * @package datapreset_proposals * @copyright 2022 Sara Arjona <sara@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class provider implements \core_privacy\local\metadata\null_provider { /** * Get the language string identifier with the component's language * file to explain why this plugin stores no data. * * @return string */ public static function get_reason() : string { return 'privacy:metadata'; } } lang/en/datapreset_proposals.php 0000644 00000002352 15152360014 0013035 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle 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 General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Strings for component 'datapreset_proposals', language 'en'. * * @package datapreset_proposals * @copyright 2022 Sara Arjona <sara@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $string['modulename'] = 'Proposals'; $string['modulename_help'] = 'Use this preset to collect proposals for topics, research, projects, etc. Fields include status such as approved, declined, revise or pending.'; $string['pluginname'] = 'Proposals'; $string['privacy:metadata'] = 'The Proposals plugin does not store any personal data.'; asearchtemplate.html 0000644 00000001662 15152360014 0010576 0 ustar 00 <div class="proposals-asearch container"> <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3"> <div class="form-group col"> <div class="font-weight-bold mb-2">First name</div> ##firstname## </div> <div class="form-group col"> <div class="font-weight-bold mb-2">Last name</div> ##lastname## </div> <div class="form-group col"> <div class="font-weight-bold mb-2">Title</div> [[Title]] </div> <div class="form-group col"> <div class="font-weight-bold mb-2">Status</div> [[Status]] </div> <div class="form-group col"> <div class="font-weight-bold mb-2">Summary</div> [[Summary]] </div> <div class="form-group col"> <div class="font-weight-bold mb-2">Content</div> [[Content]] </div> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�