summaryrefslogtreecommitdiffstats
path: root/examples/view/sysconf
diff options
context:
space:
mode:
Diffstat (limited to 'examples/view/sysconf')
-rw-r--r--examples/view/sysconf/default.view.php138
-rw-r--r--examples/view/sysconf/group.modal.view.php49
-rw-r--r--examples/view/sysconf/issue.modal.view.php52
-rw-r--r--examples/view/sysconf/message.modal.view.php55
-rw-r--r--examples/view/sysconf/pad.modal.view.php68
-rw-r--r--examples/view/sysconf/stage.modal.view.php52
-rw-r--r--examples/view/sysconf/user.modal.view.php48
7 files changed, 462 insertions, 0 deletions
diff --git a/examples/view/sysconf/default.view.php b/examples/view/sysconf/default.view.php
new file mode 100644
index 0000000..90e5441
--- /dev/null
+++ b/examples/view/sysconf/default.view.php
@@ -0,0 +1,138 @@
+<!--
+ * SCROTT Copyright (C) 2016 Malf Furious
+ *
+ * Scrott 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.
+ *
+ * Scrott is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+ * License for more details.
+-->
+
+<!DOCTYPE html>
+
+<html lang="en">
+ <head>
+ <?php include "view/master/head.view.php"; ?>
+ <title>Scrott - System-level configuration missing</title>
+
+ <style type="text/css">
+ body { padding-top: 50px; }
+ a { color: inherit; }
+ </style>
+ </head>
+
+ <body>
+ <?php include "view/master/topp.view.php"; ?>
+
+ <?php include "view/sysconf/user.modal.view.php"; ?>
+ <?php include "view/sysconf/group.modal.view.php"; ?>
+ <?php include "view/sysconf/pad.modal.view.php"; ?>
+ <?php include "view/sysconf/stage.modal.view.php"; ?>
+ <?php include "view/sysconf/issue.modal.view.php"; ?>
+ <?php include "view/sysconf/message.modal.view.php"; ?>
+
+ <div class="container">
+ <div class="jumbotron">
+ <h2 class="text-center">
+ <a href="#" data-toggle="modal" data-target="#userModal"><span class="glyphicon glyphicon-user"></span></a>&nbsp;&nbsp;&nbsp;
+ <a href="#" data-toggle="modal" data-target="#groupModal"><span class="glyphicon glyphicon-th"></span></a>&nbsp;&nbsp;&nbsp;
+ <a href="#" data-toggle="modal" data-target="#padModal"><span class="glyphicon glyphicon-edit"></span></a>&nbsp;&nbsp;&nbsp;
+ <a href="#" data-toggle="modal" data-target="#stageModal"><span class="glyphicon glyphicon-tasks"></span></a>&nbsp;&nbsp;&nbsp;
+ <a href="#" data-toggle="modal" data-target="#issueModal"><span class="glyphicon glyphicon-inbox"></span></a>&nbsp;&nbsp;&nbsp;
+ <a href="#" data-toggle="modal" data-target="#messageModal"><span class="glyphicon glyphicon-envelope"></span></a>
+ </h2>
+
+ <h1 class="text-center">Welcome to Scrott!</h1>
+ <hr />
+
+ <p class="text-center">You're seeing this page because the file "scrott.conf.php" is missing.<br />Please fill out the form below to create a config automatically!</p>
+ <p class="text-center">Click the icons above to learn more about core Scrott features and constructs!</p>
+ <hr />
+
+ <p class="text-center">This form will initialize Scrott's system-level configuration.<br />These are things the app needs before it can begin functioning at all!</p>
+ <h5 class="text-center">It is presumed that you are the administrator for this Scrott install.<br />There is a security risk involved with exposing this page to the public!</h5>
+
+ <div class="row">
+ <div class="col-md-2"></div>
+
+ <div class="col-md-8">
+ <div class="panel panel-default">
+ <div class="panel-body">
+ <form method="post" action="<?=$mod->ap()?>">
+ <input type="hidden" name="input[action]" value="save" />
+ <legend>Database Connection</legend>
+ <div class="form-group">
+ <label>Engine</label>
+ <input type="text" class="form-control" value="Mysql" disabled />
+ </div>
+
+ <div class="form-group">
+ <label>Server Address</label>
+ <input type="text" name="input[dbAddress]" class="form-control" placeholder="localhost" required="true" />
+ </div>
+
+ <div class="form-group">
+ <label>Database Name</label>
+ <input type="text" name="input[dbName]" class="form-control" placeholder="db_scrott" required="true" />
+ </div>
+
+ <div class="form-group">
+ <label>Username</label>
+ <input type="text" name="input[dbUser]" class="form-control" placeholder="root" required="true" />
+ </div>
+
+ <div class="form-group">
+ <label>Password</label>
+ <input type="password" name="input[dbPass]" class="form-control" />
+ </div>
+
+ <legend>Application Installation</legend>
+ <div class="form-group">
+ <label>Install Location</label>
+ <input type="text" class="form-control" value="<?=$mod->ar()?>/" disabled />
+ <h6 class="pull-right">Detected from location of files in web document root</h6>
+ </div>
+
+ <legend>Settings</legend>
+ <div class="form-group">
+ <label>HTTP(S)</label>
+ <div class="radio">
+ <label>
+ <input type="radio" name="input[settSSL]" value="force" />
+ Always Force SSL
+ </label>
+ </div>
+
+ <div class="radio">
+ <label>
+ <input type="radio" name="input[settSSL]" value="neither" checked />
+ Neither (Application can override)
+ </label>
+ </div>
+
+ <div class="radio">
+ <label>
+ <input type="radio" name="input[settSSL]" value="forbid" />
+ Always Forbid SSL
+ </label>
+ </div>
+ </div>
+
+ <button type="submit" class="btn btn-primary pull-right">Use these settings</button>
+ </form>
+ </div>
+ </div>
+ </div>
+
+ <div class="col-md-2"></div>
+ </div>
+ </div>
+ </div>
+
+ <?php include "view/master/foot.view.php"; ?>
+ </body>
+</html>
diff --git a/examples/view/sysconf/group.modal.view.php b/examples/view/sysconf/group.modal.view.php
new file mode 100644
index 0000000..c0641d9
--- /dev/null
+++ b/examples/view/sysconf/group.modal.view.php
@@ -0,0 +1,49 @@
+<?php
+
+/*
+ * SCROTT Copyright (C) 2016 Malf Furious
+ *
+ * Scrott 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.
+ *
+ * Scrott is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+ * License for more details.
+ */
+
+?>
+
+<div id="groupModal" class="modal fade" tabindex="-1" role="dialog">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+
+ <button type="button" class="close" data-dismiss="modal">
+ <span aria-hidden="true">&times;</span>
+ </button>
+
+ <h4 class="modal-title">User Groups</h4>
+
+ </div>
+
+ <div class="modal-body">
+ <p>Groups make sharing objects and collaborating easier. Instead of creating your
+ own pad and adding each of your team members to it individualy, create a
+ group-owned pad. With the appropriate permissions set, all group members will be
+ able to use the pad. This also solves issues where a shared pad is owned by a
+ single user whose account gets closed. Instead pads and other objects are safe as
+ long as the group exists. Groups are owned and managed by a single user, who must
+ stick around or transfer ownership for the group to continue functioning.</p>
+ </div>
+
+ <div class="modal-footer">
+ <button type="button" class="btn btn-primary" data-dismiss="modal">
+ Close
+ </button>
+ </div>
+ </div>
+ </div>
+</div>
diff --git a/examples/view/sysconf/issue.modal.view.php b/examples/view/sysconf/issue.modal.view.php
new file mode 100644
index 0000000..694dd47
--- /dev/null
+++ b/examples/view/sysconf/issue.modal.view.php
@@ -0,0 +1,52 @@
+<?php
+
+/*
+ * SCROTT Copyright (C) 2016 Malf Furious
+ *
+ * Scrott 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.
+ *
+ * Scrott is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+ * License for more details.
+ */
+
+?>
+
+<div id="issueModal" class="modal fade" tabindex="-1" role="dialog">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+
+ <button type="button" class="close" data-dismiss="modal">
+ <span aria-hidden="true">&times;</span>
+ </button>
+
+ <h4 class="modal-title">Issues</h4>
+
+ </div>
+
+ <div class="modal-body">
+ <p>Issues represent work. This work could be anything from a software project's bug
+ needing fixed or a new feature to implement to a record of needing to order more
+ celing panels for the new home office build. Work is done by someone, for someone,
+ and this is reflected in Scrott's internal data structures. Every issues has a
+ distinct owner (someone requesting work be done) and assignee (someone who needs to
+ do the work). If others are interested in the work or have valuable input on the
+ work, they may be included (cc'd) on the issue to receive updates on it or to be able
+ to post their own updates. Scrott tracks issues using pads which are representative
+ of a high-level project or some similar effort. So related issues are tracked
+ together.</p>
+ </div>
+
+ <div class="modal-footer">
+ <button type="button" class="btn btn-primary" data-dismiss="modal">
+ Close
+ </button>
+ </div>
+ </div>
+ </div>
+</div>
diff --git a/examples/view/sysconf/message.modal.view.php b/examples/view/sysconf/message.modal.view.php
new file mode 100644
index 0000000..14cca2d
--- /dev/null
+++ b/examples/view/sysconf/message.modal.view.php
@@ -0,0 +1,55 @@
+<?php
+
+/*
+ * SCROTT Copyright (C) 2016 Malf Furious
+ *
+ * Scrott 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.
+ *
+ * Scrott is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+ * License for more details.
+ */
+
+?>
+
+<div id="messageModal" class="modal fade" tabindex="-1" role="dialog">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+
+ <button type="button" class="close" data-dismiss="modal">
+ <span aria-hidden="true">&times;</span>
+ </button>
+
+ <h4 class="modal-title">Messages</h4>
+
+ </div>
+
+ <div class="modal-body">
+ <p>Although Scrott is formost an issue-tracking tool, it can also be a useful
+ communication tool for team and client relationships. Scrott includes a lightweight
+ messaging system that is aparent:</p>
+ <ul>
+ <li>In pads: where users can start new general discussion threads and post
+ replys</li>
+ <li>In issues: where users can post comments or updates on work status</li>
+ <li>In general: where users can send other users direct private messages</li>
+ </ul>
+ <p>With email integration, Scrott also allows communication with non-scrott user
+ clients or owners of issues.</p>
+ <p>Scrott's built-in logging system utilizes this messaging framework and is used
+ by object owners and site administrators to monitor usage and activity on Scrott</p>
+ </div>
+
+ <div class="modal-footer">
+ <button type="button" class="btn btn-primary" data-dismiss="modal">
+ Close
+ </button>
+ </div>
+ </div>
+ </div>
+</div>
diff --git a/examples/view/sysconf/pad.modal.view.php b/examples/view/sysconf/pad.modal.view.php
new file mode 100644
index 0000000..2fbf26b
--- /dev/null
+++ b/examples/view/sysconf/pad.modal.view.php
@@ -0,0 +1,68 @@
+<?php
+
+/*
+ * SCROTT Copyright (C) 2016 Malf Furious
+ *
+ * Scrott 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.
+ *
+ * Scrott is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+ * License for more details.
+ */
+
+?>
+
+<div id="padModal" class="modal fade" tabindex="-1" role="dialog">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+
+ <button type="button" class="close" data-dismiss="modal">
+ <span aria-hidden="true">&times;</span>
+ </button>
+
+ <h4 class="modal-title">Pads</h4>
+
+ </div>
+
+ <div class="modal-body">
+ <p>Use pads to track tasks, issues, bugs, client tickets, etc. Within Scrott, these
+ are collectively referred to as 'issues'. Use a pad to track your progress on a
+ project's completion, to manage user issues for a help-desk, to keep a shopping list,
+ bucket list, lists to track your progress on a television series (or series you'd
+ like to start), or books to read, or anything inbetween.</p>
+
+ <p>In addition to issue tracking, pads enable users to communicate with one another.
+ Each pad consists of a lightweight message board (forum) and users can also post
+ messages directly to issues if they are relevant. With email integration, even
+ non-scrott users may be clued in to the progress of their open issues. Pads even
+ allow for message threads to be converted (elevated) to a new open issue if need be.
+ (for example: Imagine you started a thread to discuss a potential new website design.
+ Once your team had arrived at something the majority liked, the thread can be elevated
+ to a new issue (preserving all messaging history), assigned to one of the team
+ members, and tracked just like all of your other issues.)</p>
+
+ <p>If you would like to allow the public to open issues in your pad (ie: if your pad
+ is allowing bug reports/feature requests from users of your project or if your pad
+ is the issue tracker for a help-desk), you can enable an issue portal for your pad.
+ A portal is a page accessible to the public where anonymous internet users (with a
+ verified email address) may submit new issues to your pad. Their email address
+ becomes the issue owner so the requester is still able to receive updates on the
+ issue as well as respond with their own messages.</p>
+
+ <p>Pads can be used by a single user or many; and pads can be owned by a user or a
+ user group</p>
+ </div>
+
+ <div class="modal-footer">
+ <button type="button" class="btn btn-primary" data-dismiss="modal">
+ Close
+ </button>
+ </div>
+ </div>
+ </div>
+</div>
diff --git a/examples/view/sysconf/stage.modal.view.php b/examples/view/sysconf/stage.modal.view.php
new file mode 100644
index 0000000..11e517f
--- /dev/null
+++ b/examples/view/sysconf/stage.modal.view.php
@@ -0,0 +1,52 @@
+<?php
+
+/*
+ * SCROTT Copyright (C) 2016 Malf Furious
+ *
+ * Scrott 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.
+ *
+ * Scrott is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+ * License for more details.
+ */
+
+?>
+
+<div id="stageModal" class="modal fade" tabindex="-1" role="dialog">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+
+ <button type="button" class="close" data-dismiss="modal">
+ <span aria-hidden="true">&times;</span>
+ </button>
+
+ <h4 class="modal-title">Pad Stages</h4>
+
+ </div>
+
+ <div class="modal-body">
+ <p>The issue-tracking aspect of pads is divided up using pad stages. A stage is
+ representative of the level of completion or high-level status of an issue. For
+ example, a pad may have an initial stage named "To Do", an intermediate stage named
+ "In Progress", and another stage "In Review". Stages form a sequence in practice.
+ When the appropriate amount of work has been done on an issue, it is advanced to the
+ next stage in the pipeline. This allows other pad members and the issue's owner to
+ at a glance get an idea of the high-level progress of the issue.</p>
+
+ <p>Once an issue is closed, it is removed from this stage pipeline, but retained in
+ the pad itself for archival purposes and for generating reports.</p>
+ </div>
+
+ <div class="modal-footer">
+ <button type="button" class="btn btn-primary" data-dismiss="modal">
+ Close
+ </button>
+ </div>
+ </div>
+ </div>
+</div>
diff --git a/examples/view/sysconf/user.modal.view.php b/examples/view/sysconf/user.modal.view.php
new file mode 100644
index 0000000..034dc04
--- /dev/null
+++ b/examples/view/sysconf/user.modal.view.php
@@ -0,0 +1,48 @@
+<?php
+
+/*
+ * SCROTT Copyright (C) 2016 Malf Furious
+ *
+ * Scrott 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.
+ *
+ * Scrott is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+ * License for more details.
+ */
+
+?>
+
+<div id="userModal" class="modal fade" tabindex="-1" role="dialog">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+
+ <button type="button" class="close" data-dismiss="modal">
+ <span aria-hidden="true">&times;</span>
+ </button>
+
+ <h4 class="modal-title">User Accounts</h4>
+
+ </div>
+
+ <div class="modal-body">
+ <p>Scrott implements a very flexible permissions and access-control system. It all
+ starts with users' accounts. Users can create and maintain objects and share them
+ with other users if they choose. This is done with a mechanism similar to unix
+ file permission modes. Scrott objects form a hierarchy, so permissions from 'higher'
+ objects will cascade down. This means that a non-trusted user may control an issue
+ in your pad, but have no access to the pad itself.</p>
+ </div>
+
+ <div class="modal-footer">
+ <button type="button" class="btn btn-primary" data-dismiss="modal">
+ Close
+ </button>
+ </div>
+ </div>
+ </div>
+</div>