-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added inbuild help guide to application. Uses Markdown syntax. Files …
…stored under /lib/help
- Loading branch information
Showing
11 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class HelpController < ApplicationController | ||
before_filter :login_required # User must be logged in first | ||
def show | ||
@help = File.open(File.join(Rails.root, 'lib', 'help', "#{params[:page_id]}.md"), 'r') { |f| f.read } | ||
@sidebar = File.open(File.join(Rails.root, 'lib', 'help', 'sidebar.md'), 'r') { |f| f.read } | ||
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :autolink => true) | ||
render :html => markdown.render(File.join(Rails.root, 'lib', 'help', "#{params[:page_id]}.md")) | ||
end | ||
|
||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="span10"> | ||
<div class="offset2 span8"> | ||
|
||
<%= markdown(@help) %> | ||
|
||
|
||
</div> | ||
|
||
<div class="span2"> | ||
<%= markdown(@sidebar) %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<% if not logged_in? %> | ||
<div class="page-header"><%= image_tag("logo.png",:height => '64') %><small><%= Setting::business_slogan %></small></div> | ||
<hr> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Home | ||
|
||
This is a home page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#### Table of contents | ||
|
||
**Users Menu** | ||
|
||
* [Create New User](/help/users_create_new) | ||
|
||
* [Employees](/help/users_employees)? | ||
|
||
* [Clients](/help/users_clients)? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## Create a New User | ||
|
||
To create a New user, You simply fill in all the relevant information for the new user. | ||
|
||
Ensure that you select the correct permission for the new user. | ||
|
||
Here you can select if the new user: | ||
|
||
* **Is a Client/Customer? => Options Yes or No** | ||
|
||
*This will limit this users permissions to only sections that the user has permission too. | ||
These are define under the `Business Settings/Roles` section where you can assign permission to the role selected.* | ||
|
||
* **Is the User an Employee? => Options Yes or No.** | ||
|
||
*If the user is an employee, this allows for an addition level of security.* | ||
|
||
* **Can this user be assigned Work Orders? => Options Yes or No.** | ||
|
||
*Not all users will be able to be assigned work orders. For example, an accountant or receptionist may never be assigned a work order. | ||
This removes this user from the list of users who can be assigned to work orders.* | ||
|
||
* **Role => Defaults are Super User, Technician, Client** | ||
|
||
*Here you can assign the particular role to this user. By default all new users who sign up through the frontend registration section | ||
automatically are assigned a client role. You can also add a customer role by going to `Business Settings/Roles` | ||
(you need to be a super user to create/edit roles and there permissions.)* | ||
|
||
|
||
|